can.view.tagData

  • typedef

{Object}

 

The data passed to can.view.tag.

Object

Properties

  1. subtemplate {renderer(data, helpers)}Optional

    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 )
    })
    
  2. scope {can.view.Scope}

    The scope of the element.

  3. options {can.view.Options}

    The mustache helpers and other non-data values passed to the template.