return t.compiled.call(this, vs, parent);
},
- compileTpl : function(tpl){
+ compileTpl : function(tpl)
+ {
var fm = Roo.util.Format;
var useF = this.disableFormats !== true;
var sep = Roo.isGecko ? "+" : ",";
var fn = function(m, name, format, args){
+
+ if (!format.length) {
+ format= 'htmlEncode';
+ }
+
if(name.substr(0, 4) == 'xtpl'){
return "'"+ sep +'this.applySubTemplate('+name.substr(4)+', values, parent)'+sep+"'";
}
args = ", values";
}
}else{
- args= ''; format = "("+v+" === undefined ? '' : ";
+ args= '';
+ format = "("+v+" === undefined ? '' : ";
}
return "'"+ sep + format + v + args + ")"+sep+"'";
};