-
Notifications
You must be signed in to change notification settings - Fork 71
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
Define syntax of tag names #67
Comments
I would read the spec as allowing anything not explicitly disallowed. In fact, whitespace,
(Quoting myself, from defunkt/pystache#156) |
@bobthecow is right. Let's add that white space in tag names should be avoided. If they were not, spaces surrounding names and spaces inside names would behave differently. Using the dash to show white space:
This is a serious enough issue to prevent white space in tag names. The prevention of tag sigils at the beginning of names is driven by the same concern. A Mustache implementation has to actively prevent users to believe that The prevention of dots is required by compound expression such as So, the spec is lacking when it does not make all of this explicit. Fortunately, there are years of implementors experience. |
There doesn't appear to be any defined spec for the syntax of tag names. For example: can they include embedded whitespace? Which non-alpha-numeric symbols can/can't they include? Is empty-sting allowed as a name (the syntax does make this possible, but is it allowed)? Etc.
The text was updated successfully, but these errors were encountered: