mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 22:04:44 +00:00
566 B
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' @@%}