To iterate over a list in Marko.js, use the for directive. Here's an example:
<template>
<ul>
<for|item| of=input.items>
<li>${item}</li>
</for>
</ul>
</template>
In this example, the for directive iterates over the input.items
array, rendering each item as a list element.