ginger icon indicating copy to clipboard operation
ginger copied to clipboard

Expressions in include statements for recursive templates?

Open zlindenbaum opened this issue 2 years ago • 0 comments

Supposing that I have a context with a templatePath field, have we any way to call include on the path stored therewithin?

Both

{% include "{{ object._templatePath }}" %} 

and

{% set temp = object._templatePath %}
{% include temp %} 

yield parser errors.

Am I missing something obvious?

zlindenbaum avatar Dec 15 '23 20:12 zlindenbaum