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.
28 lines
533 B
HTML
28 lines
533 B
HTML
{{/*
|
|
|
|
Render a table showing content type and description, given:
|
|
|
|
* `content_type`: the content type as a string
|
|
|
|
* `description`: the description as a string
|
|
|
|
*/}}
|
|
|
|
{{ $content_type := .content_type }}
|
|
{{ $description := .description}}
|
|
|
|
{{ if $content_type }}
|
|
|
|
<table class="content-type-table">
|
|
<thead>
|
|
<th class="col-name">Content-Type</th>
|
|
<th class="col-description">Description</th>
|
|
</thead>
|
|
<tr>
|
|
<td><code>{{ $content_type }}</code></td>
|
|
<td>{{ $description | markdownify -}}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{{ end }}
|