forked from canjs/canjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41c3839
commit 9d63767
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@typedef {function(Object,Object.<String, function>):documentFragment} can.view.renderer(data,helpers) renderer | ||
|
||
@description A function returned by [can.view], [can.view.ejs], [can.view.mustache] that renders a | ||
template into an html documentFragment. | ||
|
||
@param {Object} data An object of data used to render the template. | ||
|
||
@param {Object.<String, function>} helpers Local helper functions used by the template. | ||
|
||
@return {documentFragment} A documentFragment that contains the HTML rendered by the template. | ||
|
||
@body | ||
|
||
A "renderer" function is a function returned by various [can.view] APIs that can be used | ||
to render data into a documentFragment. |