-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Qute: Cannot locate hyphenated template name
Fixes redhat-developer/quarkus-ls#975 Signed-off-by: azerr <azerr@redhat.com>
- Loading branch information
1 parent
3114a5e
commit f55035d
Showing
12 changed files
with
308 additions
and
73 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
projects/qute/projects/maven/qute-record/src/main/java/org/acme/sample/ItemResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.acme.sample; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import jakarta.ws.rs.GET; | ||
import jakarta.ws.rs.Path; | ||
|
||
import io.quarkus.qute.CheckedTemplate; | ||
import io.quarkus.qute.TemplateExtension; | ||
import io.quarkus.qute.TemplateInstance; | ||
|
||
@Path("items") | ||
public class ItemResource { | ||
|
||
@CheckedTemplate(defaultName=CheckedTemplate.ELEMENT_NAME) | ||
static class Templates { | ||
static native TemplateInstance HelloWorld(String name); | ||
|
||
} | ||
|
||
@CheckedTemplate(defaultName=CheckedTemplate.HYPHENATED_ELEMENT_NAME) | ||
static class Templates2 { | ||
static native TemplateInstance HelloWorld(String name); | ||
|
||
} | ||
|
||
@CheckedTemplate(defaultName=CheckedTemplate.UNDERSCORED_ELEMENT_NAME) | ||
static class Templates3 { | ||
static native TemplateInstance HelloWorld(String name); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.