* x.t:(test,tesT)
*
*/
- re : /\{([\w-\.]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,
-
+ re : /(\{|%7B])([\w-\.]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\}|%7D)/g,
+ //re : /\{([\w-\.]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,
iterChild : function (node, method) {
var div = document.createElement('div');
div.appendChild(node);
tpl.dom = node;
+ // this has the unfortunate side effect of converting tagged attributes
+ // eg. href="{...}" into %7C...%7D
+ // this has been fixed by searching for those combo's although it's a bit hacky..
+
+
tpl.body = div.innerHTML;
},
+
+
+
+
/**
* Compile a segment of the template into a 'sub-template'
+ *
+ *
*
*
*/
{
var fm = Roo.util.Format;
var useF = this.disableFormats !== true;
+
var sep = Roo.isGecko ? "+\n" : ",\n";
+
var undef = function(str) {
Roo.log("Property not found :" + str);
return '';
};
+
+
- var fn = function(m, name, format, args)
+ var fn = function(m, lbrace, name, format, args)
{
+ //Roo.log("ARGS");
//Roo.log(arguments);
args = args ? args.replace(/\\'/g,"'") : args;
//["{TEST:(a,b,c)}", "TEST", "", "a,b,c", 0, "{TEST:(a,b,c)}"]
if (typeof(format) == 'undefined') {
- format= 'htmlEncode';
+ format = 'htmlEncode';
}
if (format == 'raw' ) {
format = false;
var html = Roo.get('body').dom.innerHTML;
Roo.get('body').dom.innerHTML = '';
-
+ Roo.debug = 1;
// nice and global to test with..
tpl = new Roo.DomTemplate({
<li roo-if="ontable == 'mtrack_ticket'" class="change-log-item">
<div class="timelineevent">
<div class="timelinetext">
- <div class="timelinereason">
+ <div class="timelinereason" name="{changedate}">
<span class="time">{changedate.format:('H:i:s')}</span>