Basic Usage
The Template Printing plugin provides various syntaxes to flexibly insert dynamic data and logical structures into templates. Below are detailed syntax explanations and usage examples.
Basic Replacement
Use placeholders in the format {d.xxx} for data replacement. For example:
{d.title}: Reads thetitlefield from the dataset.{d.date}: Reads thedatefield from the dataset.
Example:
Template Content:
Dataset:
Rendered Result:
Accessing Sub-objects
If the dataset contains sub-objects, you can access the properties of the sub-objects using dot notation.
Syntax: {d.parent.child}
Example:
Dataset:
Template Content:
Rendered Result:
Accessing Arrays
If the dataset contains arrays, you can use the reserved keyword i to access elements in the array.
Syntax: {d.arrayName[i].field}
Example:
Dataset:
Template Content:
Rendered Result:

