SimonDegraeve / meteor-jade-handlebars

[DEPRECATED] Write the templates in your Meteor Application using Handlebars and Jade instead of HTML and Handlebars
34 stars 24 forks source link

{{#if}}{{/if}} not support ? #1

Closed crapthings closed 11 years ago

crapthings commented 11 years ago
template(name='app')
    div#app
        {{#if currentUser}}
            {{> error}}
            {{> navbar}}
            {{> page}}
        {{else}}
            {{> sign}}
        {{/if}}
SimonDegraeve commented 11 years ago

I'm on holiday (without computer) until Monday 14th January. So you can expect the issue to be solved next week. Thanks for the feedback.

jonjamz commented 11 years ago

Until the issue is fixed, try adding a period onto the end of the tag that surrounds the handlebars, which will cause it to be parsed as text and preserved for the handlebars parsing.

template(name='app')
    div#app.
        {{#if currentUser}}

and so on...works for me with #each.

SimonDegraeve commented 11 years ago

The bug is solved.

Duplicate from Issue 4.

crapthings commented 11 years ago

nest helper supported ?

SimonDegraeve commented 11 years ago

Yes, it's support.Let me know if you got issues about that.