htma
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

HTML Alchemy

HTML Alchemy is a small Javascript (both node and browsers) library intended to help with building HTML strings.

Installation

Node

Install with the npm package manager.

npm install --save htma

Usage

Typescript

import { div } from 'htma';

const template_string = div('foo',{"class": "bar"});

// template_string is <div class="bar">foo</div> 

Node

TODO

Browser

TODO

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

ISC

Package Sidebar

Install

npm i htma

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

37.4 kB

Total Files

21

Last publish

Collaborators

  • gbora