dlタグをv-forループで生成するのは簡単ですよね
<template>
<dl v-for="item in items">
<dt>{{ item.name }}</dt>
<dd>{{ item.description }}</dt>
</dl>
</template>
↓
<dl>
<dt>えるしつているか</dt>
<dd>りんごしかたべない</dt>
</dl>
<dl>
<dt>死神は</dt>
<dd>手が赤い</dt>
</dl>
でも一つのdlタグの中でdtとddを複数個作りたい時ありますよね。
むしろそっちが大多数かなと。
こうします。
<template>
<dl>
<template v-for="item in items">
<dt>{{ item.name }}</dt>
<dd>{{ item.description }}</dt>
</template>
</dl>
</template>
↓
<dl>
<dt>えるしつているか</dt>
<dd>りんごしかたべない</dt>
<dt>死神は</dt>
<dd>手が赤い</dt>
</dl>
templateタグの中でtemplateタグを使えることを知りませんでした。