Summary
PHP template engine that simplifies the generation of HTML pages.
Notes
- This PHP 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.