Magic Code Samples
Jinja code examples for tricky things.
Last updated
Was this helpful?
Jinja code examples for tricky things.
Last updated
Was this helpful?
How to get the first and last name in two variables in Jinja?
How to get the myname of before the @ nicely, e.g. to use as a first name?
If you have two lists, one of which can be nested, and you want to combine items of it, do as follows:
List 1 called list_1
:
List 2 called list_2
:
Since items is reserved in Python, and we use Python in the backend, you need to call it like list_1["items"]
, rather than standard dot notation.
list_1.items is NOT possible.
In the :