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

Conditional class attributes #263

Closed rmzr7 closed 8 years ago

rmzr7 commented 8 years ago

Bind-attrs has been deprecated. Shouldn't we support conditional class attributes such as class={{if foo "bar"}} ?

thec0keman commented 8 years ago

This should be working currently:

<div class={{if foo 'bar'}}>Hi</div>

I have noticed some issues mixing this with the click helper.