blob: b82050c37db705f7e64a68a6888f5c380122bd16 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
set -xe
test -f "${1}"
filename="$(echo "${1}" | rev | cut -d "." -f 2- | rev)"
template="templates/template.gohtml"
gomplate \
-c data="${1}" \
-c translations=templates/translations.yml \
-f "${template}" \
| tee "${filename}.html" \
| weasyprint - "${filename}.pdf"
|