Twig templating engine can be used for WordPress development with the plugin called Timber. You can write simple, neat and clean code which is modular and easier to maintain. How? Simple! Keep the view part of your code separate from its data or logic.
If you are interested in learning how you can use Timber with WordPress and want a kick-start instead of going through the documentation and testing, I have written a four part series about this topic at Tuts+.
In this series; Kick-Start WordPress Development With Twig, I discussed Twig’s implementation and integration with WordPress.
- Introduction to Twig
- Getting Started Twig
- Blocks, Nesting, and WP Cheatsheet Twig
- Timber Image, Menu, and User
In the end, I would like to thank UpStatment and Jared Nova (Maker of TimberWP).