0.8.0 • Published 8 years ago

meiosis-render v0.8.0

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

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.