phppythonsmartyjinja2

Is there's any difference between smarty and jinja2's template inheritance mechanisms?


I always thought that Jinja was great because of template inheritance, but recently I've come across Smarty, which also provides tempate inheritance.

Is there's any difference between smarty and jinja2's template inheritance mechanisms?


Solution

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