Construct the UI for this widget from a template, setting this.domNode.
Usage
function () (view source)
// Lookup cached version of template, and download to cache if it// isn't there already. Returns either a DomNode or a string, depending on// whether or not the template contains ${foo} replacement parameters.var cached = dijit._Templated.getCachedTemplate(this.templatePath, this.templateString, this._skipNodeCache);
var node;
if(dojo.isString(cached)){
node = dijit._Templated._createNodesFromText(this._stringRepl(cached))[0];
}else{// if it's a node, all we have to do is clone it
node = cached.cloneNode(true);
}// recurse through the node, looking for, and attaching to, our// attachment points which should be defined on the template node.this._attachTemplateNodes(node);
var source = this.srcNodeRef;
if(source && source.parentNode){
source.parentNode.replaceChild(node, source);
}this.domNode = node;
if(this.widgetsInTemplate){var cw = this._supportingWidgets = dojo.parser.parse(node);
this._attachTemplateNodes(cw, function(n,p){return n[p];
});
}this._fillContent(source);