Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Java
  3. Jade4J

Jade4J

MITJavajade4j-1.3.2

A Java implementation of the Pug template engine that processes templates without requiring JavaScript.

GitHubGitHub
707 stars115 forks0 contributors

What is Jade4J?

Jade4j (now renamed to Pug4j) is a Java implementation of the Pug template engine that allows developers to process Pug templates directly in Java applications without requiring a JavaScript environment. It solves the problem of using Pug's concise, whitespace-sensitive syntax in Java-based web projects while maintaining full compatibility with the original Pug syntax.

Target Audience

Java developers building web applications who want to use Pug templates for server-side rendering, particularly those working with Spring, Jooby, or Vert.x frameworks.

Value Proposition

Developers choose Jade4j because it provides native Java performance with 3-4x faster expression evaluation using JEXL, maintains full Pug syntax compatibility, and offers seamless integration with popular Java web frameworks without JavaScript runtime dependencies.

Overview

a pug implementation written in Java (formerly known as jade)

Use Cases

Best For

  • Server-side HTML generation in Java web applications
  • Using Pug templates in Spring Boot projects
  • Building Java applications with Vert.x web framework
  • Creating maintainable templates with Pug's concise syntax
  • Projects requiring template caching for performance
  • Teams transitioning from JavaScript Pug templates to Java environments

Not Ideal For

  • Projects requiring real-time client-side templating with JavaScript runtime dependencies
  • Teams using Java frameworks not natively supported (e.g., Play Framework, Micronaut) without custom integration
  • Applications where XML-based templating is mandatory for tooling or compliance reasons
  • Environments with zero tolerance for breaking changes during library updates

Pros & Cons

Pros

Full Pug Syntax Compatibility

Supports almost the entire Pug 2 syntax, allowing seamless template sharing between JavaScript and Java environments without modification.

JEXL Performance Boost

Uses the JEXL expression engine for 3-4x faster evaluation than previous implementations, enhancing server-side rendering speed in Java apps.

Built-in Template Caching

Implements caching to avoid redundant parsing of unchanged templates, with a configurable option to disable it for development workflows.

Framework Integration Ready

Offers out-of-the-box integrations with Spring, Jooby, and Vert.x, simplifying adoption in popular Java web application frameworks.

Cons

JEXL Expression Quirks

JEXL's semi-strict mode and reserved words like 'new' and 'size' can cause unexpected null/false evaluations or require awkward bracket notation for property access.

Breaking Changes History

Several versions (e.g., 1.3.0, 1.2.0, 1.0.0) introduced breaking changes, such as scoping adjustments and filter interface updates, complicating upgrades for existing projects.

Limited Built-in Filter Support

Comes with only plain and cdata filters; custom filters for Markdown or CoffeeScript require additional implementation and dependency management compared to the JavaScript Pug ecosystem.

Frequently Asked Questions

Quick Stats

Stars707
Forks115
Contributors0
Open Issues3
Last commit4 years ago
CreatedSince 2012

Tags

#jade#server-side-rendering#template-engine#pug#java#spring-integration#web-development

Built With

M
Maven
J
Java

Included in

Java47.5k
Auto-fetched 1 day ago

Related Projects

jtejte

Secure and speedy templates for Java and Kotlin.

Stars1,118
Forks88
Last commit1 day ago
StringTemplateStringTemplate

StringTemplate 4

Stars1,033
Forks233
Last commit1 year ago
RockerRocker

Java 8 optimized, memory efficient, speedy template engine producing statically typed, plain java objects

Stars780
Forks91
Last commit5 months ago
jstachiojstachio

Java type safe statically compiled mustache

Stars330
Forks14
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub