/jte

Secure and speedy templates for Java and Kotlin.

Primary LanguageJavaApache License 2.0Apache-2.0

jte: Java Template Engine

jtejte (Java Template Engine) is a secure and lightweight template engine for Java and Kotlin. jte is designed to introduce as few new keywords as possible and builds upon existing language features, making it straightforward to reason about what a template does. The IntelliJ plugin offers full completion and refactoring support for Java parts and jte keywords.

Build Status Coverage Status License Maven Central

🚀 jte 3 is here! Check out the release notes for exciting new features, improved performance, and streamlined dependencies.

Features

  • Intuitive and easy syntax, you'll rarely need to check the documentation
  • Write plain Java or Kotlin for expressions. You don't need to learn yet another expression language
  • Context-sensitive HTML escaping at compile time
  • IntelliJ plugin with completion and refactoring support
  • Hot reloading of templates during development
  • Blazing fast execution (see benchmarks)

tl;dr

jte gives you the same productive, typesafe experience you're used to from writing Java or Kotlin. Here is a quick demo of the IntelliJ jte plugin:

jte plugin in IntelliJ

Documentation

Documentation lives in the jte website.

Framework integration

Websites rendered with jte