Meteor: trying to add bootstrap classes with handlebars -
i'm trying toggle bootstrap has-success form validation state handlebars, so:
<!-- inside modal dialog --> <div class="form-group {{> paymentformamountvalidate}}"> <div class="col-xs-9"> <div class="input-group"> <input id="amount" name="amount" class="form-control paymentforminput"/> </div> </div> </div> <template name="paymentformamountvalidate"> {{session "paymentformamountvalidate"}} </template> (i've removed irrelevant markup stuff).
i removed {{session}} helper different template because of advice given in this other question.
i know {{session}} helper returning right thing, 'has-success', because i've checked thoroughly.
here's form-group looks in elements (when copied html):
<div class="form-group <!--label:fv2npkqemcjeeuj9p-->"> ... </div> again, happening within modal, , that's suspect causing these problems.
thanks in advance!
when don't want text escaped, wrap triple {{{ }}}
Comments
Post a Comment