org.trimou:trimou-extension-dropwizard

Mustache template engine implementation written in Java.

License

License

Categories

Categories

DropWizard Container Microservices
GroupId

GroupId

org.trimou
ArtifactId

ArtifactId

trimou-extension-dropwizard
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-dropwizard

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
io.dropwizard : dropwizard-views jar 0.9.2
org.trimou : trimou-core jar 2.5.1.Final

test (3)

Group / Artifact Type Version
com.sun.jersey.jersey-test-framework : jersey-test-framework-core jar 1.18.1
com.sun.jersey.jersey-test-framework : jersey-test-framework-http jar 1.18.1
junit : junit jar 4.12

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