3.0.1 • Published 10 years ago

virtual-dom-stringify v3.0.1

Weekly downloads
195
License
BSD
Repository
github
Last release
10 years ago

virtual-dom-stringify

NPM version NPM Downloads Build Status Tips

Stringify virtual-dom trees into HTML. For parsing DOM nodes into a virtual-dom tree use vnode-virtualize.

Deprecated

This module is deprecated. Use vdom-to-html.

Installation

Using npm:

npm install --save virtual-dom-stringify

Using bower:

bower install --save virtual-dom-stringify

API Reference

module.exports(node, parent, options) ⇒ String

Stringify given virtual dom tree and return html.

Kind: Exported function

ParamTypeDescription
nodeVirtualNode
parentVirtualNode
optionsObject
options.selfClosingTagsArray.<String>tags that are self-closing
options.attributesObject.<String, String>map of attribute names where keys are camelCased name and values are the HTML attribute name.
options.asciiSafeBooleanencode non-ASCII symbols (default: false)

Example

var VirtualNode = require('vtree/vnode');
var stringify = require('virtual-dom-stringify');

stringify(new VirtualNode('div'));
// => "<div></div>"

Contributing

Please submit all issues and pull requests to the alexmingoia/virtual-dom-stringify repository!

Tests

Run tests using npm test.

Support

If you have any problem or suggestion please open an issue here.

3.0.1

10 years ago

3.0.0

10 years ago

2.1.0

10 years ago

2.0.3

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.11.0

10 years ago

0.10.0

10 years ago

0.9.0

10 years ago

0.8.1

10 years ago

0.8.0

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago