News for hackers. Stuff that matters.
Re:Mustache 2.0 and the Future of Mustache.js by jeremychone on Sunday February 13, 2011 @04:39PM (#2214034)
I move to jquery-tmpl because I never understood why there was so much resistance to the dot notation.

BTW, jQuery-tmpl is supposed to become "jQuery/DOM" free in a few, which allow to use it on the server-side as well (assuming Javascript).

Re:Mustache 2.0 and the Future of Mustache.js by audionerd on Sunday February 13, 2011 @04:49PM (#2214063)
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/c...

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.