diff --git a/bin/dustc b/bin/dustc index 9e9abc27..a0785441 100755 --- a/bin/dustc +++ b/bin/dustc @@ -75,6 +75,11 @@ function handle() { templateName = path.relative(cli.options.pwd, templateName); } + // Windows creates template names with \ so normalize to / to allow AMD loaders + // to correctly load templates, and so you don't have to write templates differently + // depending on what OS you use + templateName = templateName.replace(/\\/g, '/'); + compiledData = compile(data, templateName); output(compiledData, outputFile); });