Using template variables
Last updated: December 1, 2024
Template Variables
Variables make templates dynamic and reusable.
Variable Syntax
Use double curly braces: `{{variable_name}}`
Example: "Dear {{recipient_name}}, Thank you for..."
Variable Types
Conditional Content
Use conditionals for optional sections:
{{#if include_warranty}}
Warranty terms go here...
{{/if}}
Loops for Lists
{{#each items}}
{{/each}}