Skip to content

Commit

Permalink
docs(map): use without context on map.jinja import examples
Browse files Browse the repository at this point in the history
  • Loading branch information
baby-gnu committed Sep 6, 2021
1 parent 7333bed commit 1555e42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/map.jinja.rst
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ Here is the best way to use it in an ``sls`` file:
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split("/")[0] %}
{%- from tplroot ~ "/map.jinja" import mapdata as TEMPLATE with context %}
{%- from tplroot ~ "/map.jinja" import mapdata as TEMPLATE without context %}
test-does-nothing-but-display-TEMPLATE-as-json:
test.nop:
Expand All @@ -480,7 +480,7 @@ Here is an example based on `template-formula/TEMPLATE/config/file.sls`_:
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- set sls_package_install = tplroot ~ '.package.install' %}
{%- from tplroot ~ "/map.jinja" import mapdata as TEMPLATE with context %}
{%- from tplroot ~ "/map.jinja" import mapdata as TEMPLATE without context %}
{%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
include:
Expand Down

0 comments on commit 1555e42

Please sign in to comment.