-
Notifications
You must be signed in to change notification settings - Fork 59
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
Tags with whitespace before the value are not allowed #10
Comments
I can't reproduce this. Could you send me some code. The tests below all pass.
});
|
I'm guessing you meant this:
By my reading of the mustache spec these are two variable tags which looks up a variable named '#libraries' and '/libraries'. For example:
Should result in "1 + 2 = 3". But there are discussions about how to specify this: If you want to have portable template code it sounds like the best solution is to do it this way:
|
I checked pystache and node.js mustache they both treat the following as a section. So I guess instead of following the spec, I'll do as the other implementations do.
I've implemented this, including adding a bunch of tests for strange corner cases. |
Ack, sorry, I mis-typed my original description. I've updated the description. You indeed did figure out what I was trying to say :) Thanks for the fix! |
Not sure if this is by design.
This works:
{{ foo.bar }}
(notice the whitespace)
This does not work:
{{ #foo.bar }}
But this does work:
{{#foo.bar}}
The text was updated successfully, but these errors were encountered: