Twig Templating in Eliona
Introduction to Twig Templating
Twig.js Version
Twig Syntax and Functions
Outputting Variables
{{ alarm.val }} {# Outputs the value of the alarm #}
{{ asset.name }} {# Displays the name of the affected asset #}Using Conditions
{% if alarm.prio == 1 %}
Attention: High priority!
{% else %}
Normal alarm.
{% endif %}Using Loops
Formatting Strings
Available Templates and Variables in Eliona
Ticket Template
Available Variables
Example of a Ticket Template
Alarm Template
Available Variables
Example of an Alarm Template
User Template
Available Variables
Example of a User Template
Password Reset Template
Available Variables
Example of a Password Reset Template
yAxis Formatter
Available Variables for the yAxis Formatter
Example of a yAxis Formatter
Legend Template
Available Variables for the Legend Template
Example of a Legend Template
Conclusion
Last updated