new-element
Create a new DOM element from string
Last updated 4 years ago by tehshrike .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install new-element 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

6 Versions

  • 1.0.0                                ...           4 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
  • 0.0.1-security                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (3)

Copyright 2014 - 2017 © taobao.org |