Template variables¶
Template variables are values that differ between instances of the same card design.
Define placeholders¶
Use a descriptive placeholder wherever the template needs a supplied value:
A default makes the variable optional for the card instance. A placeholder without a default must be supplied.
Supply values¶
The instance uses the default unit and supplies its own entity and name.
Pass lists and configuration blocks¶
A variable can also contain a list or map:
Use variables for meaningful differences between card instances. Keep state-dependent values in JavaScript templates.