PhileCMS / Phile

A flat file CMS with a swappable parser and template engine.
https://philecms.github.io/
Other
257 stars 49 forks source link

twig template class internal refactoring #226

Closed Schlaefer closed 9 years ago

Schlaefer commented 9 years ago

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.