- ❤️ Sponsor Javalin
- The main project webpage is javalin.io
- Chat on Discord: https://discord.gg/sgak4e5NKv
- License summary: https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)
The javalin-rendering
artifact is an optional module for the Javalin web framework that provides a simple way to render HTML using popular template engines. The javalin-rendering
artifact includes default implementations for several template engines, including JTE, Mustache, Velocity, Pebble, Handlebars, and Thymeleaf.
DOCS: https://javalin.io/plugins/rendering
<dependency>
<groupId>io.javalin</groupId>
<artifactId>javalin-rendering</artifactId>
<version>5.4.2</version>
</dependency>
implementation "io.javalin:javalin-rendering:5.4.2"
Once you have included the javalin-rendering
artifact and one of the supported template engine dependencies in your project, Context#render
should automatically render your templates. By default, the plugin will look in src/main/resources/templates
for template files.