Documentation: Flowy Templates & Translations
Templates
Flowy supports templates that can be managed centrally and used in the according steps (i.e. for email sending in the email step).
Each template allows the storage of necessary localizations. These localizations are identified by names, which can be common across multiple languages. Utilize these names within the template to access the relevant localizations. It's important to note that localizations are exclusively accessible within the template in which they are defined.
It is possible to use templates within other templates. The syntax is the same for all template engines:
<flowy-template>name of the template to be included</flowy-template>
As a convenience feature to format date and time, a function named dateTool can be used. The syntax depends on the template engine.
For the Handlebars template engine:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
{{dateTool date "dd/MM/yyyy"}}
</body>
</html>
For the Thymeleaf template engine:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p th:text="${#dateTool.format(date, 'dd-MM-yyyy HH:mm')}"></p>
</body>
</html>
For the Velocity template engine:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p th:text="${#dateTool.format(date, 'dd-MM-yyyy HH:mm')}"></p>
$dateTool.format('dd/MM/yyyy', $date)
</body>
</html>
This feature is not available for the Markdown and Mustache template engines.


Translations
Translations resemble localizations but are accessible system-wide across all templates. This universal availability makes them suitable for elements needed in multiple locations.

