stampino
stampino copied to clipboard
type="repeat" as="posts" repeat="{{ data.posts }}"
Would be nice to alias the item name for repeats, especially in nested repeats, a la the venerable old <dom-repeat>
<template>
<h2>Posts</h2>
<ol>
<template type="repeat" repeat="{{ posts }}" as="post">
<li>
<article>
<h3>{{ post.title }}</h3>
<p>{{ post.summary }}</p>
<ul>
<template type="repeat" repeat="{{ post.tags }}" as="tag">
<li><a href="/tags/{{ tag }}?post={{ post.slug }}">{{ tag }}</a></li>
</template>
</ul>
</article>
</li>
</template>
</ol>
</template>