<h2>This is a foreach loop test</h2>
<pad-core-for_each_tag _:in:_="testArray" as="testValue" key="index">
    <div>
        <h3>This is item {{index}}:</h3>
        <pad-testing-basic_test pad-template="DataTest"/>
    </div>
</pad-core-for_each_tag>

<h2>Or with a table</h2>
<table class="pad-courselist">
    <thead>
        <tr><th>key</th><th>value</th></tr>
    </thead>
    <tbody>
        <pad-core-for_each_tag _:in:_="tableData" as="tableValue" key="tableKey">
            <tr><td>{{tableKey}}</td><td>{{tableValue}} {{tableValue->1}}</td></tr>
        </pad-core-for_each_tag>
    </tbody>
</table>

<h2>Or with a table and parser shorthand</h2>
<table class="pad-courselist">
    <thead>
        <tr><th>key</th><th>value</th><th>value->1</th></tr>
    </thead>
    <tbody>
        <pad-for _:in:_="tableData" as="tableValue" key="tableKey">
            <tr><td>{{tableKey}}</td><td>{{??tableValue??"not displayable"}}</td><td>{{?tableValue->1?tableValue->1:"undefined"}}</td></tr>
        </pad-for>
    </tbody>
</table>