Twig-table
From LimeSurvey Manual
Twig conversion table
Twig uses variables and expressions to render templates.
Variables
Twig code | Explanation |
---|---|
{{ surveylanguage }} | requests the language of the specific survey. |
Expressions
Twig code | Explanation |
---|---|
{% if count(aSurveyInfo.aLoadForm.aErrors) > 0 %} capturing errors {% endif %} | check for errors, has to be handled within the if. |
{% for item in items %} {{ item }} {% endfor %} | looping through sequences. |