This allows easy subclassing of Phile\Plugin\Phile\TemplateTwig\Template to implement other engines. You only have to overwrite getEngine() and _render().
There are better ways to implement it (e.g. abstract class), but I didn't want to introduce something new and/or break backwards-compatibility.
This allows easy subclassing of
Phile\Plugin\Phile\TemplateTwig\Template
to implement other engines. You only have to overwritegetEngine()
and_render()
.There are better ways to implement it (e.g. abstract class), but I didn't want to introduce something new and/or break backwards-compatibility.