org.trimou:trimou-core

Mustache template engine implementation written in Java.

Лицензия

Лицензия

Группа

Группа

org.trimou
Идентификатор

Идентификатор

trimou-core
Последняя версия

Последняя версия

2.5.1.Final
Дата

Дата

Тип

Тип

jar
Описание

Описание

Mustache template engine implementation written in Java.

Скачать trimou-core

Как подключить последнюю версию

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-api jar 1.7.4

test (3)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.slf4j : slf4j-simple jar 1.7.4
com.google.code.gson : gson jar 2.8.1

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
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
1.2.1.Final
1.2.0.Final
1.1.0.Final
1.0.0.Final
1.0.0.Beta1