Handlebar - dynamic element attributes
I want to do something like this:
<span class="{{user.female ? 'female-span' : 'male-span'}}">
This is easily doable in something like angularjs but I cannot do this
handlebar. What is the idiom/pattern to follow in handlebar when I want to
dynamically change element attributes? Are there any handlebar plugins
that do this?
No comments:
Post a Comment