You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
658 B
HTML
31 lines
658 B
HTML
{{/*
|
|
|
|
Render a table showing content types and their descriptions, given
|
|
two arrays with equal length:
|
|
|
|
* `content_types`: the content type strings
|
|
|
|
* `descriptions`: the description strings
|
|
|
|
*/}}
|
|
|
|
{{ $content_types := .content_types }}
|
|
{{ $descriptions := .descriptions}}
|
|
|
|
{{ if (gt (len $content_types) 0) }}
|
|
|
|
<table class="content-type-table">
|
|
<thead>
|
|
<th class="col-name">Content-Type</th>
|
|
<th class="col-description">Description</th>
|
|
</thead>
|
|
{{ range $idx, $content_type := $content_types }}
|
|
<tr>
|
|
<td><code>{{ $content_type }}</code></td>
|
|
<td>{{ index $descriptions $idx | markdownify -}}</td>
|
|
</tr>
|
|
{{ end }}
|
|
</table>
|
|
|
|
{{ end }}
|