renderer

  • typedef
can.view.renderer

{function(data, helpers)}

 

A function returned by can.view, can.ejs, can.mustache, can.stache that renders a template into an html documentFragment.

function(data, helpers)

Parameters

  1. data {Object}

    An object of data used to render the template.

  2. helpers {Object<String,function()>}

    Local helper functions used by the template.

Returns

{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.