quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.51k stars 2.6k forks source link

Qute...Co-locate templates and static resources #14130

Closed jefrog1844 closed 2 years ago

jefrog1844 commented 3 years ago

Description I'm working on using Qute along with Hotwired Turbo (https://turbo.hotwire.dev/) which is working very well since Qute returns HTML and that is what Turbo is designed for. This methodology can be outstanding as long as Quarkus continues to support some type of template system if not Qute.

Turbo can submit ajax requests to resources/META-INF/resources directory without accessing a JAX-RS endpoint. These are resources such a .css, .js, .jpg, and static .HTML files.

The issue becomes when access to a dynamic HTML page is needed (getting a list of items from a database). The .html resources needed via Qute are located in the resources/templates directory. So these files in order to access static resources use a src attribute like so (assume quarkus.http.root-path=/example/resources):

Githubissues.
  • Githubissues is a development platform for aggregating issues.