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:

  1. Template engine open and close tags: {% %}

  2. Comment open and close tags: {# .... #}

  3. Output a variable open and close tags: {{ }}

  4. Set a variable example: {% set varname = 'my custom text' %}

  5. If else logic example: {% if varname == 'hello' %} say {{ varname }} {% else %} say goodbye {% endif %}

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

There are 0 Comments

Please sign in to leave a comment.