diff options
Diffstat (limited to 'book/src/template_syntax.md')
-rw-r--r-- | book/src/template_syntax.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/book/src/template_syntax.md b/book/src/template_syntax.md index 755d283..23b5dea 100644 --- a/book/src/template_syntax.md +++ b/book/src/template_syntax.md @@ -390,3 +390,11 @@ You can then call it later with `{% call name(args) %}` {% call heading(s) %} ``` + +You can place templates in a separate file and use it in your templates by using `{% import %}` + +``` +{%- import "macro.html" as scope -%} + +{% call scope::heading(s) %} +``` |