UNPKG

can

Version:

MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.

18 lines (10 loc) 528 B
@typedef {{}} can.view.tagData The data passed to [can.view.tag]. @option {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 ) }) @option {can.view.Scope} scope The scope of the element. @option {can.view.Options} options The mustache helpers and other non-data values passed to the template.