|
|
@ -53,18 +53,18 @@ module.exports = function (grunt) {
|
|
|
|
handlebars: {
|
|
|
|
handlebars: {
|
|
|
|
options: {
|
|
|
|
options: {
|
|
|
|
namespace : 'T',
|
|
|
|
namespace : 'T',
|
|
|
|
partialRegex: /Partial.html/,
|
|
|
|
partialRegex: /Partial.hbs/,
|
|
|
|
wrapped : true,
|
|
|
|
wrapped : true,
|
|
|
|
amd : true,
|
|
|
|
amd : true,
|
|
|
|
processName: function (fileName) {
|
|
|
|
processName: function (fileName) {
|
|
|
|
return fileName
|
|
|
|
return fileName
|
|
|
|
.replace(srcRoot, '')
|
|
|
|
.replace(srcRoot, '')
|
|
|
|
.replace('.html', '')
|
|
|
|
.replace('.hbs', '')
|
|
|
|
.toLowerCase();
|
|
|
|
.toLowerCase();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
files : {
|
|
|
|
files : {
|
|
|
|
src : [ srcRoot + '**/*Template.html', srcRoot + '**/*Partial.html'],
|
|
|
|
src : [ srcRoot + '**/*Template.hbs', srcRoot + '**/*Partial.hbs'],
|
|
|
|
dest: outputDir + 'templates.js'
|
|
|
|
dest: outputDir + 'templates.js'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|