org.trimou:trimou-extension-jdk8

Mustache template engine implementation written in Java.

License

License

GroupId

GroupId

org.trimou
ArtifactId

ArtifactId

trimou-extension-jdk8
Last Version

Last Version

1.8.4.Final
Release Date

Release Date

Type

Type

jar
Description

Description

Mustache template engine implementation written in Java.

Download trimou-extension-jdk8

How to add to project

<!-- https://jarcasting.com/artifacts/org.trimou/trimou-extension-jdk8/ -->
<dependency>
    <groupId>org.trimou</groupId>
    <artifactId>trimou-extension-jdk8</artifactId>
    <version>1.8.4.Final</version>
</dependency>
// https://jarcasting.com/artifacts/org.trimou/trimou-extension-jdk8/
implementation 'org.trimou:trimou-extension-jdk8:1.8.4.Final'
// https://jarcasting.com/artifacts/org.trimou/trimou-extension-jdk8/
implementation ("org.trimou:trimou-extension-jdk8:1.8.4.Final")
'org.trimou:trimou-extension-jdk8:jar:1.8.4.Final'
<dependency org="org.trimou" name="trimou-extension-jdk8" rev="1.8.4.Final">
  <artifact name="trimou-extension-jdk8" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.trimou', module='trimou-extension-jdk8', version='1.8.4.Final')
)
libraryDependencies += "org.trimou" % "trimou-extension-jdk8" % "1.8.4.Final"
[org.trimou/trimou-extension-jdk8 "1.8.4.Final"]

Dependencies

compile (1)

Group / Artifact Type Version
org.trimou : trimou-core jar 1.8.4.Final

test (3)

Group / Artifact Type Version
junit : junit jar 4.11
org.slf4j : slf4j-simple jar 1.7.4
org.trimou : trimou-core test-jar 1.8.4.Final

Project Modules

There are no modules declared in this project.

Trimou - Trim Your Mustache Templates!

Trimou site Travis CI Build Status Maven Central Gitter License

Trimou is a templating engine. It's a Mustache implementation but Helpers API inspired by Handlebars.js is also supported. The goal is to provide a simple to use and easy to extend templating engine for any Java SE or Java EE application.

There are some ready-to-use extensions which provide integration with CDI, Servlets, PrettyTime, HtmlCompressor, google-gson, JSON Processing Object Model API (JSR 353), Spring MVC, Dropwizard and EL 3.0.

Get Started

All the artifacts are available in the Maven Central Repository:

<dependency>
  <groupId>org.trimou</groupId>
  <artifactId>trimou-core</artifactId>
  <version>${version.trimou}</version>
</dependency>

Use the MustacheEngineBuilder to build a MustacheEngine - a central point for template management.

// Build the engine - don't configure anything but use sensible defaults
MustacheEngine engine = MustacheEngineBuilder.newBuilder().build();
// Compile the template - no caching and no template locators used
Mustache mustache = engine.compileMustache("Hello {{this}}!");
// Render "Hello world!"
System.out.println(mustache.render("world"));

Examples

Building Trimou

Simply run:

$ mvn clean install

Versions

Version
1.8.4.Final
1.8.3.Final
1.8.2.Final
1.8.1.Final
1.8.0.Final
1.7.3.Final
1.7.2.Final
1.7.1.Final
1.7.0.Final