view
A function returned by can-stache that renders a template into an html documentFragment.
view(data, [helpers])
A "view" function is a function returned by templates that can be used to render data into a documentFragment.
Parameters
- data
{Object}
:An object of data used to render the template.
- helpers
{Object<String,function>}
:Local helper functions used by the template.
Returns
{documentFragment}
:
A documentFragment that contains the HTML rendered by the template.