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] Custom default value is ignored in {config:boolean } rendering #24166

Closed
fbricon opened this issue Mar 8, 2022 · 1 comment · Fixed by #24165
Closed

[Qute] Custom default value is ignored in {config:boolean } rendering #24166

fbricon opened this issue Mar 8, 2022 · 1 comment · Fixed by #24165
Labels
area/qute The template engine kind/bug Something isn't working
Milestone

Comments

@fbricon
Copy link
Contributor

fbricon commented Mar 8, 2022

Describe the bug

According to https://quarkus.io/guides/qute-reference#config, when you write {config:boolean('quarkus.foo.boolean') ?: 'Not Found'}, I was expecting it displays Not Found if quarkus.foo.boolean is not defined. But NOT_FOUND is rendered instead

Expected behavior

Display the user-defined default value

Actual behavior

Displays hard-coded NOT_FOUND

How to Reproduce?

Just paste {config:boolean('quarkus.foo.boolean') ?: 'Not Found'} in https://github.com/quarkusio/quarkus-quickstarts/blob/main/qute-quickstart/src/main/resources/templates/hello.html, run the app and access http://localhost:8080/hello

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@fbricon fbricon added the kind/bug Something isn't working label Mar 8, 2022
@quarkus-bot quarkus-bot bot added the area/qute The template engine label Mar 8, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Mar 8, 2022

/cc @mkouba

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/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants