0.3.0 • Published 8 years ago

rogain-render-string v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

rogain-render-string

Render a Rogain tree into html using string concatination. Useful for server rendering.

Example

import tree from './template.json';
import data from './data.json';

document.body.innerHTML = renderToString(resolveTree(tree, data, options));

renderToString(tree, props, options)

Renders a tree with a given set of properies.

tree

Object in Rogain tree format.

props

Object.

options

options.components optional rogain-registry instance. defines components used in resolution.

Install

With npm do:

npm install rogain-render-string

License

MIT

0.3.0

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago