can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
16 lines (9 loc) • 649 B
Markdown
function(Object,Object.<String, function>):documentFragment} can.view.renderer(data,helpers) renderer
A function returned by [can.view], [can.ejs], [can.mustache], [can.stache] that renders a
template into an html documentFragment.
{Object} data An object of data used to render the template.
{Object.<String, function>} helpers Local helper functions used by the template.
{documentFragment} A documentFragment that contains the HTML rendered by the template.
A "renderer" function is a function returned by various [can.view] APIs that can be used
to render data into a documentFragment.
{