Skip to content

Commit

Permalink
Minor updates after dicussion on lazd/gulp-handlebars#17.
Browse files Browse the repository at this point in the history
  • Loading branch information
wbyoung committed Mar 12, 2014
1 parent 7958f6c commit 1360586
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 @@ -18,13 +18,13 @@ module.exports = function(options) {
catch (err) { this.emit('error', err); }
if (compiled) {
file.contents = new Buffer(compiled);
file.path = file.path.slice(0, -path.extname(file.path).length) + '.js';
file.path = gutil.replaceExtension(file.path, '.js');
file.defineModuleOptions = {
require: { Ember: 'ember' },
context: {
emberHandlebars: 'Ember.Handlebars.template(<%= contents %>)'
},
wrapper: 'Ember.TEMPLATES[\'<%= name %>\'] = <%= emberHandlebars %>'
wrapper: '(Ember.TEMPLATES[\'<%= name %>\'] = <%= emberHandlebars %>)'
};
this.queue(file);
}
Expand Down

0 comments on commit 1360586

Please sign in to comment.