We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b188f90 commit 4f702e2Copy full SHA for 4f702e2
lib/common/util.js
@@ -9,7 +9,8 @@ var _ = require('lodash'),
9
10
function globTemplate(pattern) {
11
return _.transform(glob.sync(pattern), function(result, filePath) {
12
- result[path.basename(filePath, path.extname(filePath))] = _.template(fs.readFileSync(filePath));
+ var key = path.basename(filePath, path.extname(filePath));
13
+ result[key] = _.template(fs.readFileSync(filePath, 'utf8'));
14
}, {});
15
}
16
0 commit comments