mustache / spec

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

Change Delimiters #29

Closed thegrandpoobah closed 1 year ago

thegrandpoobah commented 12 years ago

The spec says:

The tag's content MUST be any two non-whitespace sequences (separated by
whitespace) EXCEPT an equals sign ('=') followed by the current closing delimiter.

Yet the examples include things like:

{{= | | =}}

which to me seems to break the "non-whitespace sequence" rule. That is, the new tag delimiter should always immediatelly fllow the = character (or immediately precede it).

Am I misreading the little paragraph at the top?

pvande commented 12 years ago

It may be slightly ambiguous; whitespace is stripped off the beginning and end of the contents of every tag type. The delimiters in those examples should be defined wIthout that whitespace.

jgonggrijp commented 1 year ago

Closing this as the question seems to have been addressed adequately. Please feel welcome to comment anyway.