Updating grunt to handle HAML correctly.

This commit is contained in:
Elf M. Sternberg 2012-07-10 10:13:01 -07:00
parent 643a2eb4ab
commit a419da0c30
1 changed files with 3 additions and 1 deletions

View File

@ -121,8 +121,10 @@ module.exports = function(grunt) {
args: ["--unix-newlines", "--no-escape-attrs", "--double-quote-attributes", src]
};
grunt.utils.spawn(args, function(err, result) {
if (err) console.log(err);
var out = path.basename(src, '.haml');
grunt.file.write(path.join(dest, out + '.html'), result.stdout);
done();
});
});
@ -132,7 +134,7 @@ module.exports = function(grunt) {
dest = grunt.config([this.name, 'dest']);
async.forEachSeries(sources,
function(path, cb) { grunt.helper('haml', path, dest, done); cb(); },
function(path, cb) { grunt.helper('haml', path, dest, cb) },
done);
});