0.8.0 • Published 8 years ago
meiosis-render v0.8.0
Meiosis-Render
Meiosis-Render is a helper library for writing Meiosis renderers.
If you write a function for your renderer with the following signature:
function intoElement(element) {
return function(model, rootComponent) {
// render the view using model and/or rootComponent
};
}
You can then pass your function to meiosisRender
:
function renderer() {
return meiosisRender(intoElement);
}
This will give you a renderer
with the following convenience functions:
renderer.intoElement(document, element)
renderer.intoId(document, id)
renderer.intoSelector(document, selector)
The following renderers use Meiosis-Render:
You will find examples of their use in the meiosis-examples repository.
--
Meiosis is developed by foxdonut (@foxdonut00) and is released under the MIT license.