bartsqueezy / ember-handlebars-brunch

This Brunch plugin adds support for pre-compiling Ember Handlebars templates prior to runtime
MIT License
9 stars 32 forks source link

Problem compiling on win32 platform when directory level has more than 2 deep. #5

Closed rodchito closed 11 years ago

rodchito commented 11 years ago

For example:

app/ templates/ artifact/ common/ propertyAddress.hbs

Actual result:

window.require.register("templates/artifact/common/propertyAddress", function(exports, require, module) { Ember.TEMPLATES['artifact/common\propertyAddress'] = ...

Expected Results:

window.require.register("templates/artifact/common/propertyAddress", function(exports, require, module) { Ember.TEMPLATES['artifact/common/propertyAddress'] = ...

Posible solution:

Updating line 25 of index.coffee to:

tmplPath = tmplPath.replace /\/g, '/'

Regards,

(sorry for my bad english)