Quarkus 1.1 was released and in the announcement surprisingly a new template extension was mentioned: Qute . Qute was made for Quarkus: it works in dev mode and you can compile to native image using Graal. In this post I will share the application I created to test the template engine. How Qute works with Quarkus? Qute works like very other Quarkus extension: convention over configuration and simple setup. It has support for custom tags and the template language is very simple. You can place templates in resource/templates and then inject them in your code. So if you have: src/main/resources/templates/productTemplate.html You can inject it using: @Inject io.quarkus.qute.Template productTemplate; Later you can create instances from this template passing variables and return them in JAX-RS methods. Yes, you can use JAX-RS as controller: @GET @Produces(MediaType.TEXT_HTML) public TemplateInstance getProductsHtm...
Blog about programming and client applications. Target Programming languages are JavaFX, Visage, HTML 5+ Javascript or even command line apps :-D