DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
  • Ecosystem
  • Infrastructure
    • can-construct
    • can-control
    • can-event
    • can-event/async/async
    • can-event/batch/batch
    • can-observation
    • can-simple-map
    • can-util
    • can-view-callbacks
      • types
        • attrData
        • tagData
      • methods
        • attr
        • tag
    • can-view-live
    • can-view-model
    • can-view-nodelist
    • can-view-parser
    • can-view-scope
    • can-view-target
  • Legacy
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Infrastructure
  • /
  • can-view-callbacks
  • /
  • tagData
  • / On this page
    • tagData

      typedef

      The data passed to tag.

      • source

      Object

      Options

      • subtemplate {renderer(data, helpers, nodeList)}:

        If the special tag has content, the content can be rendered with subtemplate. For example:

        callbacks.tag("foo-bar", function(el, tagData){
          var frag = tagData.subtemplate(tagData.scope, tagData.options);
          $(el).html(frag);
        });
        
      • scope {can-view-scope}:

        The scope of the element.

      • options {Options}:

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

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.