Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Error with 0 in sections #183

Closed
brunobg opened this Issue · 2 comments

2 participants

@brunobg

This template fails:

{{#numberOfComments}}0{{/numberOfComments}}

Error message:

Fatal error: Uncaught exception 'Mustache_Exception_SyntaxException' with message 'Nesting error: numberOfComments vs. 0numberOfComments' in vendor/mustache/mustache/src/Mustache/Parser.php on line 80
( ! ) Mustache_Exception_SyntaxException: Nesting error: numberOfComments vs. 0numberOfComments in vendor/mustache/mustache/src/Mustache/Parser.php on line 80

With a space before the '0' it works.

@bobthecow
Owner

That's really really strange. Do you mind writing a test case?

@bobthecow bobthecow referenced this issue from a commit
@bobthecow Add a failing test for #183
Tokenization error for sections with only “0” in them.
f1d3955
@bobthecow bobthecow closed this issue from a commit
@bobthecow Ugh PHP.
Fixes #183
aa77e3b
@bobthecow bobthecow closed this in aa77e3b
@bobthecow
Owner

Thanks for reporting this. It has been fixed in v2.5.1 (hot off the press! install it while it's fresh!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.