1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 20:54:51 +00:00
Files
dotdrop/docs/howto/include-in-template.md
2020-09-15 21:58:33 +03:00

566 B

Include file or template in template

Jinja2 provides the ability to include an external file/template from within a template with the directive include. See the related doc for more. The path must be relative to the dotpath.

For example:

{%@@ include 'colors/black.colors' @@%}

Of course, paths could be also dynamically generated using variables. For example:

{%@@ include colors_path + '/black.colors' @@%}