machty / emblem.js

Emblem.js - Ember-friendly, indented syntax alternative for Handlebars.js
http://emblemjs.com
MIT License
1.04k stars 81 forks source link

Subexpression support #123

Closed Nthalk closed 10 years ago

Nthalk commented 10 years ago

I have not been able to insert subexpressions in the 0.3.9 release of the emblem-source.

I'm sure you will recognize the attempt:

li: link-to pagniator.page (query-params page=pagniator.page)

However, I'm stuck in handlebars land because emblem chokes on it.

I've attempted variations of the handlebars escape syntax

li: link-to pagniator.page {(query-params page=pagniator.page)}
li: link-to pagniator.page {{(query-params page=pagniator.page)}}

Is there something I'm missing or is this as of yet unimplemented?

sherwinyu commented 10 years ago

I ran into this also; I suspect it's unimplemented given that subexpression support was only recently merged in to Canary (https://github.com/wycats/handlebars.js/pull/690).