Open Source Template Engines in Java

18 projects

Template engine for text output (HTML, email, config, source). FTL language; MVC separation; zero dependencies. Apache project since 2015.

Details

MiniTemplator is a compact template engine for HTML files. Features: * Available in Java, PHP and Visual Basic (VB/VBA). * Simple syntax for template variables and blocks.

Details

Template engine for source code, web pages, email, and formatted text. Enforces strict model-view separation; well-suited to code generators, multi-skin sites, and i18n. Powers ANTLR code generation; ports exist for C#, JavaScript, and others.

Details

Typed template language and TeaServlet for high-performance template-based servlet development. Compiles templates; supports web pages and utilities. TeaTrove is the maintained fork of the original SourceForge Tea project.

Details

Lightweight library to create dynamic documents from template documents. Supports variables and dynamic blocks; templates can be in any text format. Designed as a small brick between data model and presentation.

Details

Web-page layout and decoration framework for consistent look, navigation, and layout across many pages. Intercepts HTML requests, parses content, and applies decorators (Decorator pattern); integrates with servlet-based applications.

Details

Java-based template engine: simple template language to reference Java objects. Used for web pages (MVC), SQL, PostScript, XML, and reports. Standalone or embedded in other systems; integrates with many web frameworks.

Details

RTFTemplate is a tool to merge a RTF template with data coming from a Java context and generate a new RTF document. The RTF template can contain custom fields, hyperlinks o defined sections to be replaced.

Details

XML-based web template language with strong presentation logic and separation from business logic. Compiles to Java bytecode. Integrates with Servlets and Java EE as an alternative to JSP.

Details
HapaxInactive

Simple text templating for Java; ctemplate-like syntax. Minimal dependencies, framework-agnostic. Use in servlets, Scala, Groovy, or server apps.

Details
BluprintsInactive

JSP templating with zero dependencies and XML config. Multiple files, namespacing, extension, nesting; SAX parsing. WebWork integration.

Details
DynamatorInactive

Transforms HTML/XML into server pages or programs. Separates markup from logic so one HTML base can drive multiple page technologies. BSD.

Details
JByteInactive

Java-based template engine for generating text documents from templates. Supports HTML from JSP or servlets, XML, RTF, WML, email, source code, and configuration files. Separates presentation from application logic.

Details
JCopistInactive

Template-based document generation server using OpenDocument templates and FreeMarker. Produces ODT, PDF, RTF, HTML, MS Word, and MS Excel from a single template.

Details
jxpInactive

JSP-like script and template engine: parses template files into an AST and executes them via reflection. Uses Java as the template language; supports caching, servlet integration, and extensible built-in functions.

Details
WebMacroInactive

Java servlet template framework promoting MVC separation. Alternative to JSP, PHP, and ASP for generating web pages and other text content; designers and programmers work in parallel.

Details
JamonInactive

General-purpose Java template engine. Encapsulation, parameterization, functional decomposition, and reuse of presentation logic. MPL.

Details

Bottom-up template spec: data inserts itself into the template. Static files or Java servlets; alternative to JSP for presentation. GPL.

Details