Loop

A loop variable must be wrapped by single parenthesis and followed by a loop block wrapped by square brackets. Single brace and single brackets pattern "()[]" is the default way to delimitate loops.

(loop_variable)[
  # Block content
  {{sub_variable}}
]

Customization

The following elements of the looping structure can be customized :

  • left loop variable delimiter

  • right loop variable delimiter

  • left loop variable block

  • right loop variable block

Example

Considering the following templating syntax :

element
value

left loop variable delimiter

((

right loop variable delimiter

))

left loop block delimiter

[[

right loop block delimiter

]]

A looping template expression should have following structure :

Last updated