I need to use some auxiliary elements of the handlebars block inside the element attribute. How can I get
.some.class{:class => "{{if property}} otherClass {{/if}}"}
to disassemble correctly? Here is the compiled output as it is:
<div class='class otherClass property}} some {{/if}} {{if'></div>
I tried to slip away from every character other than a word, try single quotes and adjust the spacing, but it doesn't seem to fix anything. I hope to find a more elegant solution than just using the keyword: plain.
source share