Message Templates
Text vs HTML Templates
A message template can be created as an HTML or plain text variant. The HTML version is suitable for invoices and e-mail templates, for example. Text versions should be used for outdated e-mail clients or, for example, templates for push notifications or announcements.
Creating a Text Template
Parameters
Since Hostinger uses the Apache FreeMarker Template Engine, variables can be dynamically integrated into the template, and even entire database objects can be processed using the JMIX Entity API.
Example Template
As an example, we create a message template that greets the customer by first and last name in the first line.

We can use the following FTL markup for this:
However, we still need to define a parameter so that FreeMarker knows which object should be bound to the template parameter ${customer}
.

We can also add a translation for the name of the parameter.

If the template is now rendered, it contains the following message:
Creating a HTML Template
As already shown in the text example, FreeMarker formattings can also be used with HTML.
This is done in the same way as in the text variant, examples follow soon.
FreeMarker Functions
FreeMarker provides a lot of functions that can be used to create dynamic content, please refer to the official docs.
FreeMarker Manual