In the first segment of this article, I introduced you to Twig, a PHP-based template engine created and maintained by Sensio Labs and Fabien Potencier. I walked you through the process of installing Twig, understanding how templates and template variables work, and using Twig's built-in conditional and loop constructs to automate some aspects of template development. I also gave you a crash course in some of Twig's built-in filters, which provide a convenient way to quickly manipulate template content.