Replace sas-emojis template

pull/977/head
Will 4 years ago
parent 86152613b1
commit 183ecfda03
No known key found for this signature in database
GPG Key ID: 385872BB265E8BF8

@ -729,7 +729,7 @@ into 7 groups of 6 bits, similar to how one would base64 encode
something. Convert each group of 6 bits to a number and use the
following table to get the corresponding emoji:
{{sas\_emoji\_table}}
{{% sas-emojis %}}
{{% boxes/note %}}
This table is available as JSON at

@ -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>
Loading…
Cancel
Save