Skip to content

Instantly share code, notes, and snippets.

@lewisnyman
Created October 16, 2015 15:42
Show Gist options
  • Save lewisnyman/c4bf816f2f3c6472b10e to your computer and use it in GitHub Desktop.
Save lewisnyman/c4bf816f2f3c6472b10e to your computer and use it in GitHub Desktop.
Loading Twig templates in Drupal 8
{# Load a template from the current active theme registry #}
{% include "table.html.twig" %}
{# Load a template relative to a module or theme's template directory #}
{% include "@module_or_theme/table.html.twig" %}
{# Load from the full path #}
{% include "themes/mytheme/table.html.twig" %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment