new-element

1.0.0 • Public • Published

new-element

Create DOM elements from HTML with simple templating based on format-text

var newElement = require('new-element')
 
newElement('<input />')
newElement('<a href="{link}">{text}</a>', { link: 'foo.com', text: 'click' })

Install

$ npm install new-element

Readme

Keywords

Package Sidebar

Install

npm i new-element

Weekly Downloads

27

Version

1.0.0

License

BSD

Last publish

Collaborators

  • tehshrike