Twig Icon

Summary

PHPServer-side scripting language for web development. template engine that simplifies the generation of HTML pages.

Overview

Main Website twig.symfony.com
Version 1.0
Experience Very helpful.

Notes

  • This PHPServer-side scripting language for web development. library does a really good job of simplifying the creation of HTML pages.
  • It allows for common elements such as the menus, titles, and footer to be coded once in the base file and then all other pages can inherit this structure and only supply the elements unique to it.
  • It is possible to accomplish something similar without Twig by coding common elements in a separate file and including them in all others but I've found that it is much easier and clearer to do this in Twig.
  • The downside is that Twig does not appear to be widely used and therefore resources are limited however the Twig website does a good job of documenting the commands so it has not been too difficult to find what was needed online.