mustache / spec

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

Add test case for dotted names #180

Closed simon-ess closed 3 months ago

simon-ess commented 1 year ago

Closes #179

jobol commented 1 year ago

I just added a related not in discussion 174: https://github.com/mustache/spec/discussions/174

It does not solves that issue but introduces a valid idea:

This current discussion might join it and many other about quoting keys or escaping characters.

I can see it is a solution: tell there is a standard escape character, say \ because it is common. So a.b is hierarchical for 2 keys when a\.b is one key.

jgonggrijp commented 1 year ago

@jobol Could you use backticks (`) to surround code, so that the backslash does not disappear from your posts? I currently cannot tell where you wrote a.b and where a\.b, because both appear as a.b.

Your suggestion to start an overarching discussion about escaping makes sense. Please feel free to file a new ticket for it in Discussions.

jgonggrijp commented 3 months ago

Released in version 1.4.2. Apologies for the long delay.