org.trimou:trimou-extension-json-p

Mustache template engine implementation written in Java.

License

License

Categories

Categories

JSON Data
GroupId

GroupId

org.trimou
ArtifactId

ArtifactId

trimou-extension-json-p
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-json-p

How to add to project

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

Dependencies

compile (1)

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

provided (1)

Group / Artifact Type Version
org.jboss.spec.javax.json : jboss-json-api_1.0_spec jar 1.0.0.Final

test (4)

Group / Artifact Type Version
org.glassfish : javax.json jar 1.0.4
junit : junit jar 4.12
org.slf4j : slf4j-simple jar 1.7.4
org.trimou : trimou-core test-jar 2.5.1.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
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