Joined Loop

A loop variable can also be followed by a joint character that will be use as a separator between every distinct element of the loop variable.

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

Example

A looping template expression using a "," charcter as a loop separator should have following structure :

(loop_variable)(,)[
  # Block content
]

Last updated

Was this helpful?