Template: iterating over a collection

  • Klaus79
    Participant
      4 years, 1 month ago #26618

      Is it possible to iterate over a collection (as input parameter) in a template?

      Maybe there is a documentation how to achive it (which I haven’t found, yet).

      Vitali Kurdasov
      Moderator
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (310)
        Has successfully completed the Intermediate Certification
      4 years, 1 month ago #26619
      Up
      2
      Down
      ::

      Hi Klaus,

      You can iterate in templates with the mustache notation. This will look like this:

      {{#pathToArray}}
      {{key}} or {{this}} if it is a simple array
      {{/pathToArray}}

      You can find more information here.

    Viewing 2 posts - 1 through 2 (of 2 total)

    You must be logged in to reply to this topic.