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

Qute data eval mechanism #12792

Closed
ia3andy opened this issue Oct 19, 2020 · 1 comment · Fixed by #17276
Closed

Qute data eval mechanism #12792

ia3andy opened this issue Oct 19, 2020 · 1 comment · Fixed by #17276
Labels
area/qute The template engine kind/enhancement New feature or request
Milestone

Comments

@ia3andy
Copy link
Contributor

ia3andy commented Oct 19, 2020

Description
It would be nice to have some kind of eval mechanism in Qute so that a data is processed as part of the template with evaluation:

bar = "evaluated";
foo = "also {bar} as a template"

template:

this is {eval foo}

output to:

this is also evaluated as a template

Implementation ideas

We could check that foo doesn't use eval to avoid any dangerous implementation, or we could see that as the developer problem no? I mean you don't need qute to create infinite loops :)

@ia3andy ia3andy added the kind/enhancement New feature or request label Oct 19, 2020
@mkouba mkouba added the area/qute The template engine label Oct 19, 2020
@quarkusbot
Copy link

/cc @mkouba

mkouba added a commit to mkouba/quarkus that referenced this issue May 17, 2021
- to parse and evaluate templates dynamically
- resolves quarkusio#12792
gsmet pushed a commit to mkouba/quarkus that referenced this issue May 18, 2021
- to parse and evaluate templates dynamically
- resolves quarkusio#12792
@quarkus-bot quarkus-bot bot added this to the 2.0 - main milestone May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/qute The template engine kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants