WordPress and Twig: How to separate Data from Views

In this Advent Calendar post you can find out how to make your code cleaner and more testable by using Twig.