Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to include template from variable value or function call result? #130

Open
4n70w4 opened this issue Jul 19, 2021 · 0 comments
Open

How to include template from variable value or function call result? #130

4n70w4 opened this issue Jul 19, 2021 · 0 comments

Comments

@4n70w4
Copy link

4n70w4 commented Jul 19, 2021

Hi! I couldn't find an answer on google or documentation. I want pass template file via variable or function like this:

{% include "./Lumia/partials/primitives/{{Value.GetType()}}.html" with Value=Value only %}

but get error:

views: [Error (where: fromfile) in partials\primitives\{{Value.GetType()}}.html | Line 1 Col 12 near 'partials/primitives/{{Value.GetType()}}.html'] unable to resolve template

Is there any workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant