Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for handlebars compilation

  • Loading branch information...
commit 91317e6e3eab73b6b4d9b45feabacfd7951543d2 1 parent 80aaec4
@popeindustries authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/processors/compilers/handlebars.js
View
4 lib/processors/compilers/handlebars.js
@@ -15,8 +15,8 @@ module.exports = {
compile: function(data, filepath, fn) {
try {
// Compile without function wrapper
- var compiled = handlebars.precompile(data);
- fn(null, 'module.exports = ' + compiled);
+ var compiled = handlebars.precompile(data, {simple:true, amd:true});
+ fn(null, 'module.exports = Handlebars.template(' + compiled + ');');
} catch (err) {
fn(err, '');
}
Please sign in to comment.
Something went wrong with that request. Please try again.