3 ms·
Is mustache.github.com not good enough as a universal templating language? I don't agree with ever design decision made for the syntax, and I've not used jinja
by grogs 15y ago
Is mustache.github.com not good enough as a universal templating language?
I don't agree with ever design decision made for the syntax, and I've not used jinja, but it has the universal part handled quite well.
The idea of a roasted PHP is interesting. It's not a no brainer in the way CoffeeScript is though. There's no real choice of language in the client-side, but there is on the server side.
Server side devs can just learn ruby/python/.NET/Scala. Client side devs are probs best switching to JavaScript or something very similar.
- Kilimanjaro 15y agoMustache is good enough and seeing it ported to so many languages is cool. But I don't like it, I'll explain why: I rather see a 'for' statement than imply that an object is 'loopable', or an 'if' instead of guessing if the var is boolean. I rather see a differentiation between statements and variables like {% statement %} {{ var }} like in jinja. I don't support the idea of logic-less templates. Everything in the right measure. Not a full-fledged language inside the template but basic loops and conditions I think are ok. I am always complaining about syntax but I believe if it is too noisy or it makes me think about its meaning, it's too complex and should be simplified.