How to include twig file from module to theme?

By admin , 27 November, 2021

Open your theme twig file and include like below.

{% include "@module_name/module_twig_file" %}

 

example: {% include "@viven_core/navbar-info.html.twig" %}

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.