Drupal8 模版包含

BeerToast

路径为:your_site.com/themes/theme_name/templates/includes/

{% include '@theme_name/includes/header.html.twig' %}

不推荐以下方式:

{% include directory ~ '/includes/header.html.twig' %}

官方文档:including-part-template

阅读 705
3 声望
0 粉丝
0 条评论
3 声望
0 粉丝
宣传栏