Skip to content

Instantly share code, notes, and snippets.

Created Feb 17, 2022
What would you like to do?
Email template
"variables": {
"param1": "value1",
"param2": {
"nestedParam1": "value2"
"things": [
"thing 1",
"thing 2",
"thing 3",
"thing 4",
"thing 5",
"thing 6"
"options": {
"documentSize": "A4",
"contentScale": "1",
"orientation": "portrait",
"margin": "0.3"
<!DOCTYPE html>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<h1>Hello, world!</h1>
{{range $index, $element := .things}}
<td>{{ $index }}</td>
<td>{{ $element }}</td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment