-
Notifications
You must be signed in to change notification settings - Fork 1
1. Template Syntax
George Njeri (Swagfin) edited this page Mar 7, 2026
·
1 revision
Use double curly braces:
{{ PropertyName }}
Examples:
{{ Name }}{{ Amount:N2 }}{{ Customer.BankingDetail.BankName }}
Dot notation is supported:
{{ Customer.CompanyName }}
{{ Customer.BankingDetail.AccountNumber }}
If any intermediate nested object is null, output is empty for that placeholder.
{{ #foreach(Items) }}
{{ Name }} x {{ Quantity }}
{{ #endforeach }}
Use . for the current item:
{{ #foreach(Tags) }}[{{ . }}]{{ #endforeach }}
{{ #foreach(Tags) }}[{{ .:uppercase }}]{{ #endforeach }}
{{ #if(Age >= 18) }}Adult{{ #else }}Minor{{ #endif }}
Supported operators:
==!=>>=<<=
Conditions work with numbers, strings, booleans, dates, and collection counts.
- Number:
N2,#,##0 - DateTime:
yyyy-MM-dd,dd-MMM-yyyy hh:mm tt
Examples:
{{ Price:N2 }}{{ Price:#,##0 }}{{ PaymentDate:yyyy-MM-dd }}
| Format | Description |
|---|---|
uppercase |
Uppercase value |
lowercase |
Lowercase value |
titlecase |
Title case value |
length |
Character count |
ToMD5 |
MD5 hash |
ToBase64 |
Base64 encode |
FromBase64 |
Base64 decode |
Examples:
{{ Name:uppercase }}{{ Value:ToBase64 }}
Regular placeholders with unknown property names remain unresolved:
{{ UnknownProperty }}
This helps content authors detect template mistakes quickly.