Twig is a PHP template engine built into Symfony 2 and Drupal 8 with the advantage of separating the presentation layer in dedicated templates for better maintainability of the code. Twig makes it possible to manage the inheritance between the template and the layout. Thanks to this template engine, the syntax is cleaner and reusable and the HTML code is more readable.