Forums / Cotonti / Development / Twig: modern template language

GHengeveld
#25921 2010-09-04 03:08
Recently I stumbled upon a project called Twig. It's a template engine for PHP. It's recently become part of the Symfony PHP framework.

Looking at the features and documentation I'd say this would make a pretty good replacement for our old XTemplate system. The documentation is very good. It's possible to customize the syntax, so we can keep the XTemplate syntax for backwards compatibility with existing skins.

I'm aware that the XTemplate system is very much tied in with the Cotonti core, to such extent that it will require modifying pretty much every core file. In my opinion though, its features would be a big improvement to the possibilities that we have in customization of templates. At the very least its worth taking a good look at.