2

我一直认为 jinja 更好,因为模板扩展.. 但他们我发现了这个:

http://www.smarty.net/docs/en/advanced.features.template.inheritance.tpl

smarty扩展和jinja2扩展有什么区别吗?

4

1 回答 1

12

Smarty is an overkill, in my opinion. I prefer Twig:

http://www.twig-project.org/

You should give it a try if you're stuck with php. It's almost the same as jinja2.

于 2011-04-18T20:58:54.893 回答