generate an html element (tag, attr, contents) string
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
History.md
Makefile
Readme.md
component.json
index.js

Readme.md

element-string

Generate an html element as a string.

Installation

Install with component(1):

$ component install bmcmahen/element-string

Example

var generate = require('element-string');
var str = generate('span', {
  class: 'bacon',
  'data-id': 'tastes good'
}, 'this is the text of the span');

License

MIT