mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Add Jinja include relative paths to Fluorine release notes
This commit is contained in:
parent
540bcde985
commit
1be25616a7
@ -594,3 +594,29 @@ This release add an additional search using the ``groupattribute`` field as
|
||||
well. The original ``accountattributename`` search is done first then the
|
||||
``groupattribute`` allowing for backward compatibility with previous Salt
|
||||
releases.
|
||||
|
||||
Jinja Include Relative Paths
|
||||
============================
|
||||
|
||||
When a jinja include template name begins with './' or
|
||||
'../' then the import will be relative to the importing file.
|
||||
|
||||
Prior practices required the following construct:
|
||||
|
||||
.. code-block:: jinja
|
||||
{% from tpldir ~ '/foo' import bar %}
|
||||
|
||||
A more "natural" construct is now supported:
|
||||
|
||||
.. code-block:: jinja
|
||||
{% from './foo' import bar %}
|
||||
|
||||
Comparatively when importing from a parent directory - prior practice:
|
||||
|
||||
.. code-block:: jinja
|
||||
{% from tpldir ~ '/../foo' import bar %}
|
||||
|
||||
New style for including from a parent directory:
|
||||
|
||||
.. code-block:: jinja
|
||||
{% from '../foo' import bar %}
|
||||
|
Loading…
Reference in New Issue
Block a user