SitePen / dojo-amd-converter

A legacy dojo to AMD conversion utility.
Other
11 stars 5 forks source link

Convert templatePath to use dojo/text #19

Open mmaxwell opened 11 years ago

mmaxwell commented 11 years ago

templatePath should be dojo/text

wkeese commented 11 years ago

Isn't that already done? I see this code in handlers.js:

    if(parent[0].type === "Property" && parent[0].key.name === "templatePath" && !quoted){
        return function(module){
            module.addDependency("dojo/text!" + path, "template");
            module.replaceCode(parent[0], "templateString: template");
        };