Permalink
Browse files

updated handlebars

  • Loading branch information...
1 parent 64cf1a6 commit 54abce390f7f09ad78ca89c3b6f535286f03d4ba @tbranyen tbranyen committed Nov 4, 2012
Showing with 4 additions and 6 deletions.
  1. +2 −5 tasks/handlebars.js
  2. +2 −1 tasks/server.js
View
7 tasks/handlebars.js
@@ -30,10 +30,7 @@ module.exports = function(grunt) {
grunt.registerMultiTask("handlebars", "Compile handlebars templates and partials.", function() {
var options = grunt.helper("options", this, {namespace: "JST"});
- var handlebarsOptions ={};
- if(!!this.data.handlebarsOptions){
- handlebarsOptions=this.data.handlebarsOptions;
- };
+ var handlebarsOptions = this.data.options || {};
grunt.verbose.writeflags(options, "Options");
@@ -60,7 +57,7 @@ module.exports = function(grunt) {
src = grunt.file.read(file);
try {
- compiled = require("handlebars").precompile(src,handlebarsOptions);
+ compiled = require("handlebars").precompile(src, handlebarsOptions);
// if configured to, wrap template in Handlebars.template call
if(options.wrapped) {
compiled = "Handlebars.template("+compiled+")";
View
3 tasks/server.js
@@ -42,7 +42,8 @@ module.exports = function(grunt) {
options.folders = _.defaults(options.folders, {
app: "./app",
assets: "./assets",
- dist: "./dist"
+ dist: "./dist",
+ vendor: "./vendor"
});
options.files = options.files || {};

0 comments on commit 54abce3

Please sign in to comment.