Twig Template Tags
To learn more about Twig, please visit https://twig.symfony.com/
Here's a brief list of common Twig tags used in Acenda's Twig templates:
-
Template engine open and close tags: {% %}
-
Comment open and close tags: {# .... #}
-
Output a variable open and close tags: {{ }}
-
Set a variable example: {% set varname = 'my custom text' %}
-
If else logic example: {% if varname == 'hello' %} say {{ varname }} {% else %} say goodbye {% endif %}
Please sign in to leave a comment.
There are 0 Comments