a:44:{s:9:"#provides";s:20:"dojox.dtl.tag.loader";s:9:"#resource";s:17:"dtl/tag/loader.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:15:"dojox.dtl._base";}}s:30:"dojox.dtl.tag.loader.BlockNode";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"name";a:1:{s:4:"type";s:0:"";}s:8:"nodelist";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:68:" this.name = name; this.nodelist = nodelist; // Can be overridden";s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:32:"dojox.dtl.tag.loader.ExtendsNode";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:5:{s:11:"getTemplate";a:1:{s:4:"type";s:0:"";}s:8:"nodelist";a:1:{s:4:"type";s:0:"";}s:6:"shared";a:1:{s:4:"type";s:0:"";}s:6:"parent";a:1:{s:4:"type";s:0:"";}s:3:"key";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:127:" this.getTemplate = getTemplate; this.nodelist = nodelist; this.shared = shared; this.parent = parent; this.key = key;";s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:32:"dojox.dtl.tag.loader.IncludeNode";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:5:{s:4:"path";a:1:{s:4:"type";s:0:"";}s:8:"constant";a:1:{s:4:"type";s:0:"";}s:11:"getTemplate";a:1:{s:4:"type";s:0:"";}s:4:"text";a:1:{s:4:"type";s:0:"";}s:6:"parsed";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:215:" this._path = path; this.constant = constant; this.path = (constant) ? path : new dd._Filter(path); this.getTemplate = getTemplate; this.text = text; this.parsed = (arguments.length == 5) ? parsed : true;";s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:35:"dojox.dtl.tag.loader.BlockNode.name";a:2:{s:8:"instance";s:30:"dojox.dtl.tag.loader.BlockNode";s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loader.BlockNode.nodelist";a:2:{s:8:"instance";s:30:"dojox.dtl.tag.loader.BlockNode";s:7:"summary";s:0:"";}s:36:"dojox.dtl.tag.loader.BlockNode.super";a:4:{s:9:"prototype";s:30:"dojox.dtl.tag.loader.BlockNode";s:4:"type";s:8:"Function";s:6:"source";s:221:" if(this.parent){ var html = this.parent.nodelist.dummyRender(this.context, null, true); if(typeof html == "string"){ html = new String(html); } html.safe = true; return html; } return '';";s:7:"summary";s:0:"";}s:37:"dojox.dtl.tag.loader.BlockNode.render";a:5:{s:9:"prototype";s:30:"dojox.dtl.tag.loader.BlockNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:814:" var name = this.name; var nodelist = this.nodelist; var parent; if(buffer.blocks){ var block = buffer.blocks[name]; if(block){ parent = block.parent; nodelist = block.nodelist; block.used = true; } } this.rendered = nodelist; context = context.push(); this.context = context; this.parent = null; if(nodelist != this.nodelist){ this.parent = this; } context.block = this; if(buffer.getParent){ var bufferParent = buffer.getParent(); var setParent = dojo.connect(buffer, "onSetParent", function(node, up, root){ if(up && root){ buffer.setParent(bufferParent); } }); } buffer = nodelist.render(context, buffer, this); setParent && dojo.disconnect(setParent); context = context.pop(); return buffer;";s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loader.BlockNode.rendered";a:2:{s:8:"instance";s:30:"dojox.dtl.tag.loader.BlockNode";s:7:"summary";s:0:"";}s:38:"dojox.dtl.tag.loader.BlockNode.context";a:2:{s:8:"instance";s:30:"dojox.dtl.tag.loader.BlockNode";s:7:"summary";s:0:"";}s:37:"dojox.dtl.tag.loader.BlockNode.parent";a:2:{s:8:"instance";s:30:"dojox.dtl.tag.loader.BlockNode";s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loader.BlockNode.unrender";a:5:{s:9:"prototype";s:30:"dojox.dtl.tag.loader.BlockNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:50:" return this.rendered.unrender(context, buffer);";s:7:"summary";s:0:"";}s:36:"dojox.dtl.tag.loader.BlockNode.clone";a:5:{s:9:"prototype";s:30:"dojox.dtl.tag.loader.BlockNode";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:71:" return new this.constructor(this.name, this.nodelist.clone(buffer));";s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loader.BlockNode.toString";a:4:{s:9:"prototype";s:30:"dojox.dtl.tag.loader.BlockNode";s:4:"type";s:8:"Function";s:6:"source";s:65:" toString: function(){ return "dojox.dtl.tag.loader.BlockNode"; ";s:7:"summary";s:0:"";}s:44:"dojox.dtl.tag.loader.ExtendsNode.getTemplate";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.ExtendsNode";s:7:"summary";s:0:"";}s:41:"dojox.dtl.tag.loader.ExtendsNode.nodelist";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.ExtendsNode";s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loader.ExtendsNode.shared";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.ExtendsNode";s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loader.ExtendsNode.parent";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.ExtendsNode";s:7:"summary";s:0:"";}s:36:"dojox.dtl.tag.loader.ExtendsNode.key";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.ExtendsNode";s:7:"summary";s:0:"";}s:40:"dojox.dtl.tag.loader.ExtendsNode.parents";a:3:{s:9:"prototype";s:32:"dojox.dtl.tag.loader.ExtendsNode";s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:42:"dojox.dtl.tag.loader.ExtendsNode.getParent";a:5:{s:9:"prototype";s:32:"dojox.dtl.tag.loader.ExtendsNode";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"context";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1181:" var parent = this.parent; if(!parent){ var string; parent = this.parent = context.get(this.key, false); if(!parent){ throw new Error("extends tag used a variable that did not resolve"); } if(typeof parent == "object"){ var url = parent.url || parent.templatePath; if(parent.shared){ this.shared = true; } if(url){ parent = this.parent = url.toString(); }else if(parent.templateString){ // Allow the builder's string interning to work string = parent.templateString; parent = this.parent = " "; }else{ parent = this.parent = this.parent.toString(); } } if(parent && parent.indexOf("shared:") === 0){ this.shared = true; parent = this.parent = parent.substring(7, parent.length); } } if(!parent){ throw new Error("Invalid template name in 'extends' tag."); } if(parent.render){ return parent; } if(this.parents[parent]){ return this.parents[parent]; } this.parent = this.getTemplate(string || dojox.dtl.text.getTemplateString(parent)); if(this.shared){ this.parents[parent] = this.parent; } return this.parent;";s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loader.ExtendsNode.render";a:5:{s:9:"prototype";s:32:"dojox.dtl.tag.loader.ExtendsNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:701:" var parent = this.getParent(context); parent.blocks = parent.blocks || {}; buffer.blocks = buffer.blocks || {}; for(var i = 0, node; node = this.nodelist.contents[i]; i++){ if(node instanceof dojox.dtl.tag.loader.BlockNode){ var old = parent.blocks[node.name]; if(old && old.nodelist != node.nodelist){ // In a shared template, the individual blocks might change buffer = old.nodelist.unrender(context, buffer); } parent.blocks[node.name] = buffer.blocks[node.name] = { shared: this.shared, nodelist: node.nodelist, used: false } } } this.rendered = parent; return parent.nodelist.render(context, buffer, this);";s:7:"summary";s:0:"";}s:41:"dojox.dtl.tag.loader.ExtendsNode.rendered";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.ExtendsNode";s:7:"summary";s:0:"";}s:41:"dojox.dtl.tag.loader.ExtendsNode.unrender";a:5:{s:9:"prototype";s:32:"dojox.dtl.tag.loader.ExtendsNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:56:" return this.rendered.unrender(context, buffer, this);";s:7:"summary";s:0:"";}s:41:"dojox.dtl.tag.loader.ExtendsNode.toString";a:4:{s:9:"prototype";s:32:"dojox.dtl.tag.loader.ExtendsNode";s:4:"type";s:8:"Function";s:6:"source";s:62:" toString: function(){ return "dojox.dtl.block.ExtendsNode"; ";s:7:"summary";s:0:"";}s:38:"dojox.dtl.tag.loader.IncludeNode._path";a:3:{s:8:"instance";s:32:"dojox.dtl.tag.loader.IncludeNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:41:"dojox.dtl.tag.loader.IncludeNode.constant";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.IncludeNode";s:7:"summary";s:0:"";}s:37:"dojox.dtl.tag.loader.IncludeNode.path";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.IncludeNode";s:7:"summary";s:0:"";}s:44:"dojox.dtl.tag.loader.IncludeNode.getTemplate";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.IncludeNode";s:7:"summary";s:0:"";}s:37:"dojox.dtl.tag.loader.IncludeNode.text";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.IncludeNode";s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loader.IncludeNode.parsed";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.IncludeNode";s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loader.IncludeNode._cache";a:3:{s:9:"prototype";s:32:"dojox.dtl.tag.loader.IncludeNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loader.IncludeNode.render";a:5:{s:9:"prototype";s:32:"dojox.dtl.tag.loader.IncludeNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1552:" var location = ((this.constant) ? this.path : this.path.resolve(context)).toString(); var parsed = Number(this.parsed); var dirty = false; if(location != this.last){ dirty = true; if(this.last){ buffer = this.unrender(context, buffer); } this.last = location; } var cache = this._cache[parsed]; if(parsed){ if(!cache[location]){ cache[location] = dd.text._resolveTemplateArg(location, true); } if(dirty){ var template = this.getTemplate(cache[location]); this.rendered = template.nodelist; } return this.rendered.render(context, buffer, this); }else{ if(this.text instanceof dd._TextNode){ if(dirty){ this.rendered = this.text; this.rendered.set(dd.text._resolveTemplateArg(location, true)); } return this.rendered.render(context, buffer); }else{ if(!cache[location]){ var nodelist = []; var div = document.createElement("div"); div.innerHTML = dd.text._resolveTemplateArg(location, true); var children = div.childNodes; while(children.length){ var removed = div.removeChild(children[0]); nodelist.push(removed); } cache[location] = nodelist; } if(dirty){ this.nodelist = []; var exists = true; for(var i = 0, child; child = cache[location][i]; i++){ this.nodelist.push(child.cloneNode(true)); } } for(var i = 0, node; node = this.nodelist[i]; i++){ buffer = buffer.concat(node); } } } return buffer;";s:7:"summary";s:0:"";}s:37:"dojox.dtl.tag.loader.IncludeNode.last";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.IncludeNode";s:7:"summary";s:0:"";}s:41:"dojox.dtl.tag.loader.IncludeNode.rendered";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.IncludeNode";s:7:"summary";s:0:"";}s:41:"dojox.dtl.tag.loader.IncludeNode.nodelist";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loader.IncludeNode";s:7:"summary";s:0:"";}s:41:"dojox.dtl.tag.loader.IncludeNode.unrender";a:5:{s:9:"prototype";s:32:"dojox.dtl.tag.loader.IncludeNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:222:" if(this.rendered){ buffer = this.rendered.unrender(context, buffer); } if(this.nodelist){ for(var i = 0, node; node = this.nodelist[i]; i++){ buffer = buffer.remove(node); } } return buffer;";s:7:"summary";s:0:"";}s:38:"dojox.dtl.tag.loader.IncludeNode.clone";a:5:{s:9:"prototype";s:32:"dojox.dtl.tag.loader.IncludeNode";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:114:" return new this.constructor(this._path, this.constant, this.getTemplate, this.text.clone(buffer), this.parsed);";s:7:"summary";s:0:"";}s:20:"dojox.dtl.tag.loader";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:13:"dojox.dtl.tag";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:9:"dojox.dtl";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}