holms
holms

Reputation: 9560

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?

Upvotes: 2

Views: 6274

Answers (1)

vonPetrushev
vonPetrushev

Reputation: 5599

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.

Upvotes: 11

Related Questions