Dynamic Expressions
Here are the most common uses of expressions
Last updated
Here are the most common uses of expressions
Last updated
You must always precede the name of your variable with "page.".
While inside a loop, you will have access to a special object called {{ loop }}
. This object provides you with valuable information about the current loop iteration.
loop.index
- the current iteration of the loop (0 indexed)
loop.remaining
- number of iterations until the end (0 indexed)
loop.first
- boolean indicating if it's the first iteration
loop.last
- boolean indicating if it's the last iteration
loop.length
- total number of items
If you want to ignore expressions in a block of code
Expliquer comment les variables marches
Conditions, for loop, etc