sasae/tests/test-loaded.twig
2023-08-24 22:31:36 +00:00

14 lines
343 B
Twig

Loaded Template {{ variant }}
{% include 'test-global' %}
{{ context_var }}
{{ simple_set }}
{{ another.context.var.deep }}
{{ context_var2 }}
{% if local_var is defined %}
this was called through render() so local_var is set to "{{ local_var }}"
{% else %}
this was called through toString() so local_var isn't defined
{% endif %}