Project Awesome project awesome

Template Engine > jte

Compiles to classes, and uses an easy syntax, several features to make development easier and provides fast execution and a small footprint.

Package 1.1k stars GitHub

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

Back to Java