Twig Templating Vs Vanilla Yii2

So far I have never used any template engine. The bad experience I had with complexity of learning smarty turned me away from them and years now I see Twig getting into Yii2 as official plugin. Definitely there must be soe good reasons.

So what are advantages of using Twig, for example over vanilla Yii2 theme? Also (if any) what’s advantage of combining them in application?

TIA,

Stefano

The main benefits of all templating engines are basically cleaner and more concise code. It’s up to you to determine if it’s worth learning/using.

http://twig.sensiolabs.org/