Twig is a template engine developed by Fabien Potencier for the PHP programming language. It is an open source product under a BSD License. It’s a very useful tool for building the templates for some PHP frameworks such as Symfony, Codeigniter and Drupal 8. I found it very easy to use, fast and powerful especially when I work on the views files as I can include some variables and logic in the HTML files.

Continue reading