Variables let you insert dynamic content into your documents. They are replaced with actual values at render time.Documentation Index
Fetch the complete documentation index at: https://docs.autype.com/llms.txt
Use this file to discover all available pages before exploring further.
Inline variables
Reference variables inline with double curly braces:customer.name) is supported for nested values.
Block-level variables
Place a variable reference on its own line to render it as a standalone block:Variable types
Variables support multiple types. The type is determined by the value you provide:- Text — A simple string value (e.g.,
"companyName": "Acme Inc") - Number — A numeric value (e.g.,
"total": { "type": "number", "value": 1250.00 }) - Image — An image with optional dimensions and alignment
- List — An ordered or unordered list
- Table — A 2D data table with optional column headers
{{total}} becomes "1250"). They are especially useful in chart dataset data arrays, where they are automatically resolved to numeric values.
For full details on defining each variable type, see the JSON Syntax — Variables reference.
Built-in variables (headers & footers)
These variables are automatically available in document headers and footers:| Variable | Description | Example Output |
|---|---|---|
{{pageNumber}} | Current page number | 1 |
{{totalPages}} | Total page count | 99 |
{{date}} | Current date (DD.MM.YYYY) | 02.02.2026 |
Date variable formatting
The{{date}} variable supports custom formatting, date manipulation, and timezone offsets.
Syntax
Format tokens
| Token | Description | Example |
|---|---|---|
YYYY | 4-digit year | 2026 |
YY | 2-digit year | 26 |
MMMM | Full month name | February |
MMM | Short month name | Feb |
MM | 2-digit month | 02 |
M | 1-2 digit month | 2 |
dddd | Full weekday | Sunday |
ddd | Short weekday | Sun |
DD | 2-digit day | 02 |
D | 1-2 digit day | 2 |
HH | 24-hour hour | 14 |
mm | Minutes | 35 |
Format presets
Instead of building a format string, use a preset name:| Preset | Equivalent Format | Example |
|---|---|---|
iso | YYYY-MM-DD | 2026-02-02 |
time | HH:mm | 14:35 |
datetime | DD.MM.YYYY HH:mm | 02.02.2026 14:35 |
long | D. MMMM YYYY | 2. February 2026 |
monthYear | MMMM YYYY | February 2026 |
Date offset (manipulation)
Shift the date forward or backward:| Offset | Description |
|---|---|
+1d | Tomorrow |
-7d | 7 days ago |
+1m | Next month |
-1y | Last year |
+2h | 2 hours from now |
+30min | 30 minutes from now |
Timezone offset
Specify a UTC offset in+HH:mm or -HH:mm format:
When using a timezone offset without a date offset, leave the offset slot empty with double slashes:
{{date/FORMAT//TIMEZONE}}.