Specify utf8 encoding.

This commit is contained in:
John-David Dalton
2016-02-16 22:04:47 -08:00
parent b188f903ce
commit 4f702e2381

View File

@@ -9,7 +9,8 @@ var _ = require('lodash'),
function globTemplate(pattern) {
return _.transform(glob.sync(pattern), function(result, filePath) {
result[path.basename(filePath, path.extname(filePath))] = _.template(fs.readFileSync(filePath));
var key = path.basename(filePath, path.extname(filePath));
result[key] = _.template(fs.readFileSync(filePath, 'utf8'));
}, {});
}