- scope of the variable is important.
- A variable (boolean) scope can't be changed inside a for..loop
- https://stackoverflow.com/questions/4870346/can-a-jinja-variables-scope-extend-beyond-in-an-inner-block
- Otherwise use the namespace()
- To check if a key exists in a dict - {%- if 'key' in dict %}
- if using for{} on dict (eg for key,value in dict, you might need to add |dictsort)
Last active
November 6, 2019 20:00
-
-
Save viggy28/cb2992659494e56fddb559b4c675a424 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment