Skip to content

Commit

Permalink
Fix for reserved keyword "default" in IE8.
Browse files Browse the repository at this point in the history
Fixes the same issue found here: handlebars-lang/handlebars.js#696
  • Loading branch information
dannygarcia committed Feb 25, 2014
1 parent bf592ca commit c21ebe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var through = require('through');
var filenamePattern = /\.(html|handlebars|hbs)$/;

var wrap = function (template) {
return 'var templater = require("handlebars/runtime").default.template;' +
return 'var templater = require("handlebars/runtime")["default"].template;' +
'module.exports = templater(' + template + ');'
}

Expand All @@ -23,4 +23,4 @@ module.exports = function (file) {

return through(write, end);

}
}

0 comments on commit c21ebe8

Please sign in to comment.