Skip to content

Commit

Permalink
Merge pull request #4 from ericclemmons/3-bad-escapement
Browse files Browse the repository at this point in the history
Replace \\ with / in template ID because of win32 file systems

Closes #3
  • Loading branch information
ericclemmons committed Jan 14, 2013
2 parents 70d1fc8 + 32213fd commit 15de224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/lib/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports.init = function(grunt) {

var concat = function(base, files, callback) {
grunt.utils.async.concatSeries(files, function(file, next) {
var id = path.relative(base, file);
var id = path.relative(base, file).replace( /\\/g, '/');
var template = '\n $templateCache.put("<%= id %>",\n "<%= content %>"\n );\n';
var cleaned = grunt.file.read(file).replace(/"/g, '\\"').replace(/\r?\n/g, '" +\n "');
var cached = grunt.template.process(template, {
Expand Down

0 comments on commit 15de224

Please sign in to comment.