4 ms·
This is a good point. Most programmers are familiar with the common notations for nested structures (e.g.: a dot, or a slash). Mustache's solution requires a p
by audionerd 16y ago
This is a good point.
Most programmers are familiar with the common notations for nested structures (e.g.: a dot, or a slash). Mustache's solution requires a programmer to explicitly reference the parent context:
https://github.com/defunkt/mustache/issues/issue/6#issue/6/comment/579313 https://github.com/defunkt/mustache/issues/issue/6#issue/6/c...
https://gist.github.com/3c91441597ac650146b9 https://gist.github.com/3c91441597ac650146b9
Maybe this was to keep Mustache "pure", and avoid introducing a dot- or slash- syntax. "Turtles all the way down"?
I agree the syntax is clunky. But it does have some internal logic.
I'd argue that the bigger problem is: most people don't know the feature exists.