fluentelement

1.0.0 • Public • Published

A simple library to fluently convert an HTML string to an HTML element.

Usage

html`<div class="myDiv">hello world</div>`

returns an HTMLDivElement.

Limitations and future work

  • The string must represent only one HTML element (though this element may have many children).
  • Currently, there is no model binding; any changes to variables after using the tagged template method will not automatically propagate to the element. You'll need to recreate the element or change the element manually.

Package Sidebar

Install

npm i fluentelement

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.56 kB

Total Files

5

Last publish

Collaborators

  • andyjames