@@ -27,7 +27,8 @@ Handlebars provides the power necessary to let you build semantic templates effe
2727
2828# Requirements
2929
30- - Handlebars 4.3+ requires Java 8 or higher.
30+ - Handlebars 4.4+ requires Java 17 or higher.
31+ - Handlebars 4.3+ requires Java 8 or higher (NOT MAINTAINED).
3132
3233
3334# Getting Started
@@ -61,9 +62,9 @@ Hello {{this}}!
6162```
6263
6364``` java
64- Handlebars handlebars = new Handlebars ();
65+ var handlebars = new Handlebars ();
6566
66- Template template = handlebars. compile(" mytemplate" );
67+ var template = handlebars. compile(" mytemplate" );
6768
6869System . out. println(template. apply(" Handlebars.java" ));
6970```
@@ -885,57 +886,16 @@ escapeHTML: True, if the JSON content contains HTML chars and you need to escape
885886
886887pretty: True , if the JSON content must be formatted. Default is: false .
887888
888- ## Jackson 2. x
889-
890- Maven :
891- ```xml
892- < dependency>
893- < groupId> com. github. jknack< / groupId>
894- < artifactId> handlebars- jackson2< / artifactId>
895- < version> ${handlebars- version}< / version>
896- < / dependency>
897- ```
898-
899- Same as Jackson1 . x, except for the name of the helper: ```Jackson2Helper ```
900-
901- ## Markdown
902-
903- Maven :
904- ```xml
905- < dependency>
906- < groupId> com. github. jknack< / groupId>
907- < artifactId> handlebars- markdown< / artifactId>
908- < version> ${handlebars- version}< / version>
909- < / dependency>
910- ```
911- Usage :
912-
913- ```java
914- handlebars. registerHelper(" md" , new MarkdownHelper ());
915- ```
916- ```
917- {{md context}}
918- ```
919- context: An object or null . Required .
920-
921- ## Humanize
889+ ## Jackson
922890
923891Maven :
924892```xml
925893 < dependency>
926894 < groupId> com. github. jknack< / groupId>
927- < artifactId> handlebars- humanize < / artifactId>
895+ < artifactId> handlebars- jackson < / artifactId>
928896 < version> ${handlebars- version}< / version>
929897 < / dependency>
930898```
931- Usage :
932-
933- ```java
934- // Register all the humanize helpers.
935- HumanizeHelper . register(handlebars);
936- ```
937-
938- See the JavaDoc of the [HumanizeHelper ] (https: // github.com/jknack/handlebars.java/blob/master/handlebars-humanize/src/main/java/com/github/jknack/handlebars/HumanizeHelper.java) for more information.
939899
940900## SpringMVC
941901
@@ -1063,7 +1023,6 @@ Hello {{#child}}{{this.value}}{{/child}}
10631023 * [Handlebars . js](http: // handlebarsjs.com/)
10641024 * [Try Handlebars . js](http: // tryhandlebarsjs.com/)
10651025 * [Mustache ](http: // mustache.github.io/)
1066- * [Humanize ](https: // github.com/mfornos/humanize)
10671026 * [ANTLRv4 ](http: // www.antlr.org/)
10681027
10691028## Author
0 commit comments