org.trimou:trimou-extension-minify

Mustache template engine implementation written in Java.

License

License

GroupId

GroupId

org.trimou
ArtifactId

ArtifactId

trimou-extension-minify
Last Version

Last Version

2.5.1.Final
Release Date

Release Date

Type

Type

jar
Description

Description

Mustache template engine implementation written in Java.

Download trimou-extension-minify

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.trimou : trimou-core jar 2.5.1.Final
com.googlecode.htmlcompressor : htmlcompressor jar 1.5.2

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.slf4j : slf4j-simple jar 1.7.4

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
2.5.1.Final
2.5.0.Final
2.4.0.Final
2.3.0.Final
2.2.1.Final
2.2.0.Final
2.1.0.Final
2.0.1.Final
2.0.0.Final
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
1.6.2.Final
1.6.1.Final
1.6.0.Final
1.5.3.Final
1.5.2.Final
1.5.1.Final
1.5.0.Final
1.4.1.Final
1.4.0.Final
1.3.2.Final
1.3.1.Final
1.3.0.Final