Bug? Haml + handlebars. .something{:class => "{{#if something}}something{{/if}}"}

41 views
Skip to first unread message

Иван Горшков

unread,
Jun 1, 2016, 9:15:19 AM6/1/16
to Haml
Hello. Help, I can not understand why do not work.
.comments{:class => "{{#if states.hiddenComments}}hidden{{/if}}"} -> <div class='comments states.hiddenComments}}hidden{{/if}} {{#if'> - error


%div{class: "comments {{#if states.hiddenComments}}hidden{{/if}}"} -> <div class='comments {{#if states.hiddenComments}}hidden{{/if}}'> - good

I will be grateful for the help.
Reply all
Reply to author
Forward
0 new messages