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
John T. Wodder II 60550424ca Proofread docs
2021-10-05 12:14:42 -04:00

570 B

Include files or templates in templates

Jinja2 provides the ability to include an external file/template from within a template with the directive include. See the related docs 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' @@%}