Placeholder language#
The content of a text element and of a QR code element can hold placeholders.
A placeholder is written between double braces and names a token, optionally followed by a filter.
Syntax#
Form |
Meaning |
|---|---|
|
Inserts the value of the field named |
|
Applies |
Spaces around the token, the vertical bar and the filter are allowed.
Text outside the braces is literal.
An opening {{ without a closing }} is literal text too.
A complete placeholder that does not follow this grammar is a syntax error. Examples are an empty placeholder, a token starting with a digit, or two filters. The validation message names the element and the placeholder.
A token must be a field of the fields table. A filter must be one of the filters below. Validation reports unknown tokens and unknown filters, and names the element.
Tokens#
The tokens are the fields listed in fields. Computed fields are filled in when a certificate is created, so templates can use them without callers providing values.
Filters#
Filter |
Applies to |
Effect |
|---|---|---|
|
Any field |
Converts the value to uppercase. |
|
Any field |
Converts the value to lowercase. |
|
Date fields only |
Formats an ISO date ( |
The date filter on a field that is not a date field is a validation error.
Date format#
The date filter writes the date in the template's Date format.
You choose the format from a list of five when you edit the template, and the field defaults to day-month-year.
The table shows how each format writes the date 2026-12-31.
Format |
Token |
Example |
|---|---|---|
Day-month-year (default) |
|
|
Month-day-year |
|
|
ISO |
|
|
Long |
|
|
Long, day first |
|
|
The token is what the REST API and the Python code store in the template's date_format field.
Month names follow the site's default language.
Dates are formatted by the add-on, not by the system locale, so the output does not depend on the server's locale settings.
A value that is not a valid ISO date makes rendering fail with a 400 error from the REST API, or a TemplateRenderError from Python.
Examples#
{{ full_name }}
{{ full_name|upper }}
from {{ event_start_date|date }} to {{ event_end_date|date }}
{{ verification_url }}