handlebars-java-helpers

The Handlebars.java Helpers artifact

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

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

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

handlebars-java-helpers
Последняя версия

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

0.4.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

handlebars-java-helpers
The Handlebars.java Helpers artifact
Ссылка на сайт

Ссылка на сайт

https://github.com/beryx/handlebars-java-helpers
Система контроля версий

Система контроля версий

https://github.com/beryx/handlebars-java-helpers

Скачать handlebars-java-helpers

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

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

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
org.codehaus.groovy : groovy-all jar 2.4.13
org.slf4j : slf4j-api jar 1.7.25
com.github.jknack : handlebars jar 4.1.0
org.apache.commons : commons-lang3 jar 3.7

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

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

License Build Status

Handlebars.java Helpers

This library provides various helpers for adding logic to Handlebars.java. Most of them are basic helpers that can be used as subexpressions in the built-in block helpers of Handlebars.java. This allows writing the template logic in a fluent way.

Example

Given the following YAML model:

birthYear: 1997

and the following template:

{{def 'fifteenYear' (math birthYear '+' 15)}}
{{#ifb (or
          (and
            (compare (math fifteenYear '%' 4) '==' 0)
            (compare (math fifteenYear '%' 100) '!=' 0)
          )
          (compare (math fifteenYear '%' 400) '==' 0)
       )
}}
Your fifteenth anniversary was in a leap year!
{{else}}
Your fifteenth anniversary was in a non-leap year!
{{/ifb}}

The resulting text will be:

Your fifteenth anniversary was in a leap year!

Please read the documentation before using the handlebars-java-helpers library.

org.beryx

Beryx

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

Версия
0.4.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0