On Fri, Dec 27, 2013 at 4:36 PM, Tyler Romeo <tylerromeo(a)gmail.com> wrote:
As in any type of control structure. Mustache is
explicitly a template
language without control structures. You can technically implement if/else
statements and for loops using Mustache's sections, but you can't have
expressions in your if statements. Template languages like Twig are more
like an actual programming language.
Having a template library that is essentially a programming language is
something I would prefer to avoid. The entire point of using a template
library (IMO) is to separate the markup from the logic. We can still use
PHP or JS to process anything that needs serious munging.
Mustache also does not have template inheritance, which would be really
useful in an extensible templating system.
Hogan.js, the implementation of Mustache that Mobile is currently using,
does support template inheritance, but I'm not sure about the options on
the PHP side.
Ryan Kaldari