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

Element modifiers don't work with multiple lines #335

Open jakesjews opened 4 years ago

jakesjews commented 4 years ago
div.some-class{{did-insert this.onInsert}}

works but

div.some-class [
  {{did-insert this.onInsert}}
]

does not.

As an alternative I tried

div{{did-insert this.onInsert}} [
  class="some-class"
]

but that did't work either.

VasylMarchuk commented 4 years ago

I also tried

div.some-class [
  (did-insert this.onInsert)
]

but that didn't work either