Rendering blog views
Once we have identified which page a visitor requested, through the routing rules seen before, and after the data has been extracted and passed to the view through the controller, it remains for this to be displayed correctly on the page. In Pimcore, this can be done using a templating system called Twig, which as we said in Chapter 4, Creating Documents in Pimcore, is the solution with which Pimcore keeps the business logic separate from the presentation logic.
Briefly, Twig is a modern template engine for PHP supported by Symfony (and therefore by Pimcore) that allows you to process code directly in the view page, through its own syntax. The official page of the project, from which it is possible to read the complete documentation, can be reached here: https://twig.symfony.com/.
The template is useful and necessary because it is possible to create a single view for different content. In other words, the templating allows us to create a single HTML page...