mustache / spec

The Mustache spec.
MIT License
364 stars 71 forks source link

Clarify interaction of custom end delimiter versus tag name #68

Closed Abscissa closed 11 years ago

Abscissa commented 11 years ago

Suppose a template sets custom delimiters to something that is allowed inside a tag name. The spec isn't clear about what happens.

For example:

Ie: Is the tag defined to be (start delim) (anything *except* end delim) (end delim), or is it more like (start delim) (*anything* that's allowed as part of a tag name) (something that's not allowed as part of a tag name such as }} or trailing-whitespace-followed-by-end-delim), etc) with an error raised if the "something that's not allowed as part of a tag name" doesn't qualify as an expected end tag?

Abscissa commented 11 years ago

Nevermind, it is made clear on interpolation.yml:

The tag's content MUST be a non-whitespace character sequence NOT containing the current closing delimiter.