1.0.0 • Published 4 years ago

fluentelement v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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.