Skip to content

dzikoysk-playground/javalin-rendering

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat at https://discord.gg/sgak4e5NKv CI License Maven

About Javalin

Javalin rendering

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

Add dependency

Maven

<dependency>
    <groupId>io.javalin</groupId>
    <artifactId>javalin-rendering</artifactId>
    <version>5.4.2</version>
</dependency>

Gradle

implementation "io.javalin:javalin-rendering:5.4.2"

Usage

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.

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 86.3%
  • Java 12.7%
  • HTML 0.5%
  • Twig 0.2%
  • FreeMarker 0.1%
  • StringTemplate 0.1%
  • Mustache 0.1%