Template Engine


Twig is a template engine for the PHP programming language. Its syntax originates from Jinja and Django templates. Twig is an open source product developed by Fabien Potencier.  Twig is default template engine of  Symfony2 PHP framework.

Twig uses flexible custom lexer and parser. This allows the developer to define custom tags and filters to create your own sublanguage.