Follow

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

0 Comments

Please sign in to leave a comment.
Powered by Zendesk