I am trying to use Drupal 8 with my own theme, due to the large structural differences for my requirements. I have a page - front.twig.html and page.twig.html, I would like to create parts of the template as used in phrozn oder in a regular Symfony2 project, for example, footer.html.twig and header.html.twig. These templates are stored in the / parts / subdirectory
But wenn I call these templates normal, I just get a string with the name of the template.
For instance:
{
{% include 'parts/footer.html.twig' %}
Returns the file name as a string:
parts/footer.html.twig
Can this be done with Drupal 8?
source
share