• typedef

renderer can.view.renderer

 

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

Type Definition: {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.