Hacker News new | ask | show | jobs
by mootothemax 5923 days ago
Hrm, I can't say I'm that excited by this; does it have any advantages over Smarty or any of the other template systems out there?

Edit: Although I must confess I like the name, new Mustache() indeed!

1 comments

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.
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.