Template Hook
Template hook is used to act as a template for the dynamic message body given. The engine uses the {{ mustache }}
templating
engine to populate the dynamic variables
A defined template hook should return a Map
of the template variables and their values to populate in the template.
"PAYMENT_ORDER":
type: text
template: "rest:http://domain.url/order"
message:
- "Thank you {{ user }}."
- ""
- "Your Avon order has been processed with reference: {{ reference }}"
- "for {{ currency }} {{ amount }}"
routes:
"re:.*": "START_MENU"
The tagged template should just return a Map with the dynamic variables to be populated.
Hook: template