Roo/XTemplate.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 9 Apr 2012 10:54:31 +0000 (18:54 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 9 Apr 2012 10:54:31 +0000 (18:54 +0800)
Roo/XTemplate.js

index f9268be..90deb9a 100644 (file)
@@ -37,6 +37,7 @@ var t = new Roo.XTemplate(
  *      &lt;tpl for="a_variable or condition.."&gt;&lt;/tpl&gt;
  *      &lt;tpl if="a_variable or condition"&gt;&lt;/tpl&gt;
  *      &lt;tpl exec="some javascript"&gt;&lt;/tpl&gt;
+ *      &lt;tpl name="named_template"&gt;&lt;/tpl&gt;
  *
  *      &lt;tpl for="."&gt;&lt;/tpl&gt; - just iterate the property..
  *      &lt;tpl for=".."&gt;&lt;/tpl&gt; - iterates with the parent (probably the template) 
@@ -54,6 +55,10 @@ Roo.XTemplate = function()
 
 Roo.extend(Roo.XTemplate, Roo.Template, {
 
+    /**
+     * The various sub templates
+     */
+    tpls : false,
     /**
      *
      * basic tag replacing syntax