Skip to content
Discussion options

You must be logged in to vote

You can annotate your enum with @TemplateEnum and use something like map.get(Test:VAL1). If you don't control the source of the enum you'd need to implement a template extension method like this: https://github.com/quarkusio/quarkus/blob/main/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/NamespaceTemplateExtensionTest.java#L110-L113.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cdhermann
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/qute The template engine
2 participants