if(sync){ if(json){ return dojo.fromJson(dojo._getText(location)) || {}; }else{ return dd.text.getTemplateString(location); } }else{ return dojo.xhrGet({ handleAs: (json) ? "json" : "text", url: location }); }