Dynamic Content
Make your templates data-driven with variables, Liquid templating, and powerful functions.
Choose Your Path
-
New to Templates?
Start here to learn the basics of using variables and data in your templates.
-
Know the Basics?
Learn about data binding patterns and Liquid syntax.
-
Need Advanced Features?
Explore functions like
repeat(),qrCode(), andcontentBlock(). -
Learn by Example?
Follow step-by-step tutorials to build real templates.
Quick Reference
| Feature | Description | Documentation |
|---|---|---|
{{variable}} |
Insert data values | Variables |
{% if %} / {% for %} |
Logic and loops | Liquid Reference |
parse_date, format_number |
Data formatting | Filters & Tags |
repeat() |
JSONPath iteration | repeat() |
qrCode(), barcode() |
Generate codes | QR & Barcodes |
contentBlock() |
Reusable blocks | Content Blocks |
{{tt_pageNumber}} |
Page numbers | Page Placeholders |
| Culture settings | Regional formatting | Localization |
How Dynamic Content Works
- Add placeholders in your template using
{{variableName}}syntax - Send data as JSON when calling the API
- Receive personalized documents with your data inserted
Example
Template:
API Data:
Output:
Section Overview
-
Variables & Data
Learn the basics of placeholders and JSON data
-
Data Binding
JSON patterns, nested access, array handling
-
Liquid Reference
Complete Liquid syntax quick reference
-
Filters & Tags
TemplateTo's custom filters and tags
-
Functions
Advanced functions for complex templates
-
Page Placeholders
Page numbers, dates, and totals
-
Localization
Culture settings and regional formatting
-
Debugging
Troubleshoot template issues
-
Themes
Share CSS styling across templates
-
Recipes
Step-by-step tutorials
External Resources
- Liquid Documentation - Official Liquid templating guide
- .NET Number Formats - Format string reference
- Date Format Strings - Interactive date format builder