Merge pull request #50923 from astronouth7303/patch-2

Document {% include %}
This commit is contained in:
Daniel Wozniak 2019-01-15 09:39:11 -07:00 committed by GitHub
commit 3f4759b8bf
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
---------------------------------------