question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Qute: user defined tags not working with .qute.html extension

See original GitHub issue

Describe the bug

Qute is using by convention extension .qute.html for templates

For example we have admin template /src/main/resources/templates/Admin/admin.qute.html and it works out of the box.

We can’t do the same with user defined tags.

Expected behavior

Adding template /src/main/resources/templates/tags/validation.qute.html should register tag validation

Actual behavior

Only template/src/main/resources/templates/tags/validation.html is registering tag validation

How to Reproduce?

No response

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kucharzykcommented, Feb 1, 2022
0reactions
kucharzykcommented, Jan 31, 2022
        // Add tags
        for (String tag : tags) {
            // Strip suffix, item.html -> item
            String tagName = tag.contains(".") ? tag.substring(0, tag.indexOf('.')) : tag;
            String tagTemplateId = TAGS + tagName;
            LOGGER.debugf("Registered UserTagSectionHelper for %s [%s]", tagName, tagTemplateId);
            builder.addSectionHelper(new UserTagSectionHelper.Factory(tagName, tagTemplateId));
        }

I’ve found duplicated logic in EngineProducer

Read more comments on GitHub >

github_iconTop Results From Across the Web

Qute Reference Guide - Quarkus
Qute is a templating engine designed specifically to meet the Quarkus needs. The usage of reflection is minimized to reduce the size of...
Read more >
Is it possible to use Qute templates in a custom extension?
Here is a solution: Put resources/templates/hello.html and this class in the deployment part of your custom extension. import java.io.
Read more >
Qute Reference Guide - Quarkus
Expressions/tags starting with an invalid identifier are ignored. A closing curly bracket ( } ) is ignored if not inside an expression/tag. hello.html....
Read more >
Quarkus Qute – A Test Ride - Gunnar Morling
Being mostly experienced with Java, server-side solutions are appealing to me, as they allow me to use the language I know and tooling...
Read more >
Fix common formatting issues for custom parameters
If you're unsure, use the Google Tag Assistant chrome extension to verify ... Either single or double quotes will work, but should always...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found