* @extends Roo.Template
* Provides a template that can have nested templates for loops or conditionals. The syntax is:
<pre><code>
-var t = new Roo.MasterTemplate(
+var t = new Roo.XTemplate(
'<select name="{name}">',
'<tpl for="options"><option value="{value:trim}">{text:ellipsis(10)}</option></tpl>',
'</select>'
this.tpls = tpls;
return this;
},
-
+ /**
+ * same as applyTemplate, except it's done to one of the subTemplates
+ * @param {Number} id of the template
+ * @param {Object} values to apply to template
+ * @param {Object} parent (normaly the instance of this object)
+ */
applySubTemplate : function(id, values, parent)
{
var t = this.tpls[id];