Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
fix for handlebars compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
popeindustries committed Mar 15, 2013
1 parent 80aaec4 commit 91317e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/processors/compilers/handlebars.js
Expand Up @@ -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, '');
}
Expand Down

0 comments on commit 91317e6

Please sign in to comment.