The #foreach helper is used to run through a list of data. Inside a #foreach, you can reference specific data within a list. A #foreach must be closed with a #endforeach.

Examples

  • {{#foreach clients}} This client’s name is: {{forename}} {{surname}}. They can be contacted at {{email}} {{#endforeach}}