Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Tab as indent causes the jade parser to crash #11

Open
donskifarrell opened this issue Jan 24, 2013 · 0 comments
Open

Using Tab as indent causes the jade parser to crash #11

donskifarrell opened this issue Jan 24, 2013 · 0 comments

Comments

@donskifarrell
Copy link

Hi, I'm finding this package very useful so far - thanks!

Usually I create Jade templates using multiple tabs as indents instead of spaces. I'm finding that I can cause the Jade parser to crash if I use indentation on Handlebar logic, e.g. an if clause.

This parses fine:

template(name='loginButtons')
    ul.nav.pull-right
        {{#if currentUser}}
        {{loggedin}}
        {{else}}
        {{loggedout}}
        {{/if}}

but this will not:

template(name='loginButtons')
    ul.nav.pull-right
        {{#if currentUser}}
            {{loggedin}}
        {{else}}
            {{loggedout}}
        {{/if}}

If I change the tabs to spaces instead everything works as expected.
I've a fairly minimal Meteor setup but it still could be something on my side, but so far cannot see what.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant