can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
18 lines (10 loc) • 528 B
Markdown
view.tagData
The data passed to [can.view.tag].
{can.view.renderer} [subtemplate] If the special tag has content,
the content can be rendered with subtemplate. For example:
can.view.tag("foo-bar", function(el, tagData){
var frag = tagData.subtemplate(tagData.scope, tagData.options)
$(el).html( frag )
})
{can.view.Scope} scope The scope of the element.
{can.view.Options} options The mustache helpers and other non-data values passed to the template.
{{}} can.