Permalink
Browse files

fixing handlebars amd mode in preheated file

  • Loading branch information...
1 parent 06fec13 commit 30c403ba6c4ba079a6ec3128dadfc618814d4747 @thlorenz committed Aug 25, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 preheat.js
View
@@ -18,7 +18,9 @@ function preheat(opts, cb) {
partials = {};
header = opts.amd ?
- 'require([\'' + opts.handlebarsSrc + '\'], function(Handlebars) {\n' :
+ 'require([\'' + opts.handlebarsSrc + '\'], function(HandlebarsArg) {\n' +
+ // until handlebars is fully amd compliant we patch it
+ ' var Handlebars = HandlebarsArg || Handlebars;' :
'(function() {\n';
header = header +

0 comments on commit 30c403b

Please sign in to comment.