All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.email.layout.txt Maven / Gradle / Ivy

The newest version!
{% if header is not empty and header.text is not empty %}
***************************
{{ header.text }}{% if header.linkUrl is not empty %}
 -> {{ header.linkUrl | raw }}{% endif %}

***************************
{% endif %}

{% if contentLines is not empty %}
{% for line in contentLines %}
{% if line.type == 'HR' %}

---

{% elseif line.type == 'TEXT' %}

{{ line.text }}{% if line.linkUrl is not empty %} -> {{ line.linkUrl | raw }}{% endif %}

{% elseif line.type == 'HTML' %}

{{ line.text | raw }}

{% elseif line.type == 'MARKDOWN' %}

{{ line.markdown }}

{% elseif line.type == 'IMAGE' %}

{{ line.alt | default(line.title) | default('image') }} {% if line.linkUrl is not empty %} -> {{ line.linkUrl | raw }}{% endif %}

{% elseif line.type == 'ATTRIBUTE' %}

{% for entry in line.map %}
{{entry.key}}: {{entry.value}}

{% endfor %}

{% elseif line.type == 'BUTTON' %}

{{line.text }} -> {{line.url | raw}}

{% elseif line.type == 'SIDE_IMAGE' %}

{% for subLine in line.contentLines %}
{% if subLine.type == 'TEXT' %}
{{ subLine.text }}{% if subLine.linkUrl is not empty %} -> {{ subLine.linkUrl | raw }}{% endif %}

{% elseif subLine.type == 'HTML' %}
{{ subLine.text | raw }}

{% elseif subLine.type == 'BUTTON' %}
{{subLine.text }} -> {{subLine.url | raw}}
{% endif %}
{% endfor %}

{% elseif line.type == 'TABLE' %}

TABLE IS NOT YET AVAILABLE ON TXT-EMAIL

{% endif %}
{% endfor %}
{% endif %}

{% if footerLines is not empty %}
-----------

{% for line in footerLines %}
{% if line.type == 'HR' %}

---

{% elseif line.type == 'COPYRIGHT' %}

©{{ line.year }} {{line.name }}{% if line.url is not empty %} -> {{ line.url | raw }}{% endif %}{% if line.suffix is not empty %}{{ line.suffix }}{% endif %}

{% elseif line.type == 'TEXT' %}

{{ line.text }}{% if line.linkUrl is not empty %} > {{ line.linkUrl | raw }}{% endif %}

{% elseif line.type == 'HTML' %}

{{ line.text | raw }}

{% elseif line.type == 'MARKDOWN' %}

{{ line.markdown }}

{% elseif line.type == 'IMAGE' %}

{{ line.alt | default(line.title) | default('image') }} {% if line.linkUrl is not empty %} -> {{ line.linkUrl | raw }}{% endif %}

{% endif %}
{% endfor %}
{% endif %}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy