Skip to content

Expressions in include statements for recursive templates? #80

@zlindenbaum

Description

@zlindenbaum

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions