Interested in sponsoring this lovely little spot?

dl Modifier

Turn a key/value array, otherwise known as a YAML mapping, into an HTML definition list.

food:
Delicious:
- bacon
- sushi
Green:
- broccoli
- kale
{{ food | dl }}
<dl>
<dt>Delicious</dt>
<dd>bacon</dd>
<dd>sushi</dd>
 
<dt>Green</dt>
<dd>broccoli</dd>
<dd>kale</dd>
</dl>
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →