-
Notifications
You must be signed in to change notification settings - Fork 309
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
the tag containing whitespaces should throw an error #156
Comments
In ruby's implementation, an error will occur require 'mustache'
Mustache.render('{{ with space }}', {'with space' => 'content'}) Mustache::Parser::SyntaxError: Unclosed tag |
According to the spec, that's a valid tag name. The only things that a tag name can't contain are I'd consider this a bug in the Ruby implementation :) |
An Objective-C implementation (https://github.com/groue/GRMustache) and a ruby implementation (https://github.com/mustache/mustache) do not allow spaces. |
If you have a python dictionary or a PHP associative array with spaces in the keys, it's perfectly valid to use tags with spaces to get at them. |
Currently, this (pystache 0.5.3) works without errors.
The text was updated successfully, but these errors were encountered: