Document {% include %}

Mention that jinja includes need to use the full path and cannot use relative paths.
This commit is contained in:
Jamie Bliss 2018-12-19 16:11:28 -05:00 committed by GitHub
parent e7f0ab6f19
commit 4f631a6f8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,6 +87,13 @@ the context into the included file is required:
.. code-block:: jinja
{% from 'lib.sls' import test with context %}
Includes must use full paths, like so:
.. code-block:: jinja
:caption: spam/eggs.jinja
{% include 'spam/foobar.jinja' %}
Including Context During Include/Import
---------------------------------------