handlebar partials are compiled into template.js

This commit is contained in:
kay.one 2013-06-08 12:39:53 -07:00
parent efa9cf6380
commit 4730bc796d
1 changed files with 4 additions and 3 deletions

View File

@ -74,6 +74,7 @@ module.exports = function (grunt) {
handlebars: { handlebars: {
options: { options: {
namespace : "Templates", namespace : "Templates",
partialRegex: /Partial.html/,
wrapped : true, wrapped : true,
processName: function (fileName) { processName: function (fileName) {
return fileName return fileName
@ -83,14 +84,14 @@ module.exports = function (grunt) {
} }
}, },
files : { files : {
src : ['UI/**/*emplate.html'], src : ['UI/**/*emplate.html','UI/**/*Partial.html'],
dest: '_output/UI/templates.js' dest: '_output/UI/templates.js'
} }
}, },
copy: { copy: {
index : { index : {
src : 'UI/**/index.html', src : 'UI/index.html',
dest: '_output/' dest: '_output/'
}, },
scripts: { scripts: {
@ -144,7 +145,7 @@ module.exports = function (grunt) {
files: '<%= copy.images.src %>', files: '<%= copy.images.src %>',
tasks: ['copy:images'] tasks: ['copy:images']
}, },
copyImages : { copyJpg : {
files: '<%= copy.jpg.src %>', files: '<%= copy.jpg.src %>',
tasks: ['copy:jpg'] tasks: ['copy:jpg']
}, },