@ifBuildProperty for qute templates? #32939
Answered
by
mkouba
TonyWeston
asked this question in
Q&A
-
I want a particular endpoint/qute template to be available only when built with a particular build property. My qute template references a CDI bean, however in the bean I have defined it as
This removes the CDI bean, as expected, if build property matrixEnabled is not set to true. However, the build fails because the qute template that references this bean, is unable to find it at build time. Is there a way of specifying @IfBuildProperty against the qute template also, since this is not required either. |
Beta Was this translation helpful? Give feedback.
Answered by
mkouba
Apr 27, 2023
Replies: 1 comment 5 replies
-
/cc @mkouba (qute) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have the
quarkus.qute.template-path-exclude
config property but you would have to pass the config value along withmatrixEnabled=false
. For example-DmatrixEnabled=false -Dquarkus.qute.template-path-exclude=myTemplate
.