Skip to content

Commit f486946

Browse files
committed
update README.md
1 parent 83b5786 commit f486946

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44

55
This library provides various helpers for adding logic to [Handlebars.java](https://github.com/jknack/handlebars.java).
66
Most of them are basic helpers that can be used as subexpressions in the built-in block helpers of Handlebars.java.
7-
This allows writing the templates in a fluent way.
7+
This allows writing the template logic in a fluent way.
88

99
**Example**
1010

1111
Given the following YAML model:
12-
```yaml
12+
```
1313
birthYear: 1997
1414
```
1515
and the following template:
1616

17-
```hbs
17+
```
1818
{{def 'fifteenYear' (math birthYear '+' 15)}}
1919
{{#ifb (or
20-
(and
20+
(and
2121
(compare (math fifteenYear '%' 4) '==' 0)
2222
(compare (math fifteenYear '%' 100) '!=' 0)
23-
)
24-
(compare (math fifteenYear '%' 400) '==' 0)
23+
)
24+
(compare (math fifteenYear '%' 400) '==' 0)
2525
)
2626
}}
2727
Your fifteenth anniversary was in a leap year!

0 commit comments

Comments
 (0)