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' @@%}