Dashboard
Signed in as
Saved templates
Save your HTML, CSS and page settings once, then send only the data: templateId and data instead of html. Works for PDFs and screenshots, and from the API too.
No templates yet.
| Name | templateId | Size | Updated | Actions |
|---|
Template syntax
Mustache style, in the HTML and the CSS. Values come from the data of each request.
{{name}}- A value, HTML-escaped. Nested values:
{{customer.name}}. {{{html}}}- A value without escaping, for HTML you trust.
{{#items}}…{{/items}}- Repeats for each item of a list (inside,
{{.}}is the item); shows once for an object ortrue; hidden when missing, false or empty. {{^items}}…{{/items}}- Shown only when the value is missing, false or empty.
{{! note }}- A comment, left out of the result.
Keep your styles in the HTML, in a <style> block, like any web page. The optional override CSS is added after them, so it wins, and may use values too, like color: {{brandColor}}: one layout, several brands. Print tips: thead { display: table-header-group } repeats table headers on every page, break-inside: avoid keeps rows together. Format numbers and dates in your data before sending them. HTML and CSS together can be up to 512 KB; load images from a URL. Templates are stored until you delete them; the data you send and the files you get are never stored.