Open okay-scam opened 5 days ago
it works for me, you have to fix your post request (no comma after "sam.n")
curl --request POST \
--url http://localhost:8888/api/v1/document-templates/9d4186c0-4bd0-4732-8fb0-2944132d31b1/pdfs \
--header 'content-type: application/json' \
--data '{
"variables": {
"username": "sam.n"
}
}'
No matter what I do, I can't get the pdf to render using Gotenberg.
The PDF only ever renders with
Failed to render HTML. Error: Undefined variable $username
My template
<h2>Hello {{ $username }}</h2>
Default variables
cURL
docker log
Running with docker-compose.yml