Skip to content

Commit b23ee0a

Browse files
committed
add conditional helpers (eq, lt, and, or, etc...) fix #627
1 parent 02943b6 commit b23ee0a

File tree

3 files changed

+557
-0
lines changed

3 files changed

+557
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ Please note you don't have to specify the extension file.
202202
* **embedded**
203203
* **i18n** and **i18nJs**
204204
* **string helpers**
205+
* **conditional helpers**
205206

206207
### with, each, if, unless:
207208
See the [built-in helper documentation](http://handlebarsjs.com/block_helpers.html).
@@ -388,7 +389,13 @@ Finally, it converts message patterns like: ```Hi {0}``` into ```Hi {{arg0}}```.
388389

389390
### string helpers
390391
Functions like abbreviate, capitalize, join, dateFormat, yesno, etc., are available from [StringHelpers] (https://github.com/jknack/handlebars.java/blob/master/handlebars/src/main/java/com/github/jknack/handlebars/helper/StringHelpers.java).
392+
393+
> NOTE: You need to register string helpers (they are not added by default)
391394
395+
### conditional helpers
396+
Functions like eq, neq, lt, gt, and, or, not, etc., are available from [ConditionalHelpers] (https://github.com/jknack/handlebars.java/blob/master/handlebars/src/main/java/com/github/jknack/handlebars/helper/ConditionalHelpers.java).
397+
398+
> NOTE: You need to register conditional helpers (they are not added by default)
392399
393400
### TypeSafe Templates
394401
TypeSafe templates are created by extending the ```TypeSafeTemplate``` interface. For example:

0 commit comments

Comments
 (0)