To render content for each member of an Iterable, use the for-each directive:

    1. <ul>
    2. <li for-each=artists as="artist">
    3. <a href="/artist/" + artist.id>
    4. {{ artist.name }}
    5. </a>
    6. </li>
    7. </ul>

    Use an as attribute to specify the name each member of the iterable will be scoped as. If it is not provided, it defaults to item:

    1. <ul>
    2. <li for-each=[1, 2, 3]>
    3. {{ item }} takes {{ item.bitLength }} bit(s) to store.
    4. </li>
    5. </ul>