Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 333 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 333 Bytes

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