From 4730bc796d6e25e0b6dff8606ccf04afccc636a8 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 8 Jun 2013 12:39:53 -0700 Subject: [PATCH] handlebar partials are compiled into template.js --- Gruntfile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 0179b5a00..83077303b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -74,6 +74,7 @@ module.exports = function (grunt) { handlebars: { options: { namespace : "Templates", + partialRegex: /Partial.html/, wrapped : true, processName: function (fileName) { return fileName @@ -83,14 +84,14 @@ module.exports = function (grunt) { } }, files : { - src : ['UI/**/*emplate.html'], + src : ['UI/**/*emplate.html','UI/**/*Partial.html'], dest: '_output/UI/templates.js' } }, copy: { index : { - src : 'UI/**/index.html', + src : 'UI/index.html', dest: '_output/' }, scripts: { @@ -144,7 +145,7 @@ module.exports = function (grunt) { files: '<%= copy.images.src %>', tasks: ['copy:images'] }, - copyImages : { + copyJpg : { files: '<%= copy.jpg.src %>', tasks: ['copy:jpg'] },