Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1.53 KB

File metadata and controls

13 lines (8 loc) · 1.53 KB

This exercise demonstrates how your Quarkus application can utilize the Qute Templating Engine feature to build type-safe, server-side templates which can be rendered at will in Quarkus applications.

Logo

Qute is a templating engine designed specifically to meet Quarkus' needs. The usage of reflection is minimized to reduce the size of native images. The API combines both the imperative and the non-blocking reactive style of coding. In the development mode, all files located in src/main/resources/templates are watched for changes and modifications are immediately visible. Furthermore, we try to detect most of the template problems at build time. In this exercise, you will learn how to easily render templates in your application.

The Qute engine renders templates (ordinary files with things like Hello {name}!). The expression {name} embedded in the template is replaced with the value of the corresponding value passed in as context (a simple string, or perhaps a Map of key/value pairs). Due to its type-safe goals, the engine will attempt to validate expressions during the build, to catch any errors or typos or other mismatched expressions.

Qute is an experimental feature. There is no guarantee of stability nor long term presence in the platform until the solution matures.

An introduction guide and a more comprehensive reference guide are available.

Let's get going!