machty / emblem-brunch

Emblem.js for Brunch.io
7 stars 13 forks source link

anyone knows if this still works? #8

Open papayaah opened 10 years ago

papayaah commented 10 years ago

it can't resolve any handlebar variables - eg,

{{outlet}} nothing happens {{each}} nothing happens {{myVariable.name}} and a lot from the emblem examples just won't compile. basically this is unusable at the moment. eg,

11 Dec 06:58:44 - error: Compiling of 'app/templates/application.emblem' failed. TypeError: Object # has no method 'replace'

I'm using these versions if it helps

jquery: 'app/assets/javascripts/jquery-1.9.1.js' ember: 'app/assets/javascripts/ember-1.0.0-rc.3.js' handlebars: 'app/assets/javascripts/handlebars-1.0.rc.3.js'

the compiled javascript looks something like this:

data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "[object Object].[object Object]", {hash:{},contexts:[depth0],types:["ID"],hashTypes:hashTypes,data:data})));

why is it [object Object].[object Object] shouldn't that be a real javascript object and not a string?

@machty

xpopov commented 10 years ago

Have you tried using "emblem-brunch": "git+https://github.com/mrinterweb/emblem-brunch.git#master" in package.json?