Re:Mustache templating system for PHP
by j_baker on Tuesday March 30, 2010 @07:30AM
(#1228835)
I think it's more about what it can't do than what it can. The main page claims that the templates are "logic-less". There's some benefit to that from a strictly MVC standpoint.
[ Parent
| on HN ]
Re:Mustache templating system for PHP
by mootothemax on Tuesday March 30, 2010 @08:02AM
(#1228883)
I guess the code's author has an interesting take on logic, because one of the examples contains an if statement:
Hello {{name}} You have just won ${{value}}! {{#in_ca}} Well, ${{taxed_value}}, after taxes. {{/in_ca}}
Admittedly, it's a bit obfuscated but whatever way you look at it, it's still logic in the view file.