Skip to content

npm-dom/new-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published