Replace sas-emojis template

This commit is contained in:
Will 2021-01-22 14:31:39 -08:00
parent 86152613b1
commit 183ecfda03
No known key found for this signature in database
GPG key ID: 385872BB265E8BF8
2 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,26 @@
{{/*
This template is used to render the table of SAS emoji table.
It replaces the old {{sas_emoji_table}} template.
*/}}
{{ $emoji_json := readFile "data-definitions/sas-emoji.json" | transform.Unmarshal }}
<table>
<tr>
<th>Number</th>
<th>Emoji</th>
<th>Unicode</th>
<th>Description</th>
</tr>
{{ range $emoji_json }}
<tr>
<td>{{ .number }}</td>
<td>{{ .emoji }}</td>
<td>{{ .unicode }}</td>
<td>{{ .description }}</td>
</tr>
{{ end }}
</table>