You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -33,15 +33,15 @@ Handlebars provides the power necessary to let you build semantic templates effe
33
33
# Getting Started
34
34
In general, the syntax of **Handlebars** templates is a superset of [Mustache](https://mustache.github.io) templates. For basic syntax, check out the [Mustache manpage](https://mustache.github.io).
35
35
36
-
The [Handlebars.java blog](https://jknack.github.io/handlebars.java) is a good place for getting started too. Javadoc is available at [javadoc.io](https://javadoc.io/doc/com.github.jknack/handlebars).
36
+
The [Handlebars.java blog](https://jknack.github.io/handlebars.java) is a good place for getting started too. Javadoc is available at [javadoc.io](https://javadoc.io/doc/com.iterable/handlebars).
@@ -51,7 +51,7 @@ Handlebars provides the power necessary to let you build semantic templates effe
51
51
Templates are loaded using the ```TemplateLoader``` class. Handlebars.java provides three implementations of a ```TemplateLoader```:
52
52
* ClassPathTemplateLoader (default)
53
53
* FileTemplateLoader
54
-
* SpringTemplateLoader (see the [handlebars-springmvc](https://github.com/jknack/handlebars.java/tree/master/handlebars-springmvc) module)
54
+
* SpringTemplateLoader (see the [handlebars-springmvc](https://github.com/iterable/handlebars.java/tree/master/handlebars-springmvc) module)
55
55
56
56
This example loads ```mytemplate.hbs``` from the root of the classpath:
57
57
@@ -112,7 +112,7 @@ Download from Maven Central:
112
112
Maven:
113
113
```xml
114
114
<dependency>
115
-
<groupId>com.github.jknack</groupId>
115
+
<groupId>com.iterable</groupId>
116
116
<artifactId>handlebars-proto</artifactId>
117
117
<version>${current-version}</version>
118
118
</dependency>
@@ -274,7 +274,7 @@ context: A template name. Required.
274
274
275
275
wrapper: One of "anonymous", "amd" or "none". Default is: "anonymous"
276
276
277
-
There is a [maven plugin](https://github.com/jknack/handlebars.java/tree/master/handlebars-maven-plugin) available too.
277
+
There is a [maven plugin](https://github.com/iterable/handlebars.java/tree/master/handlebars-maven-plugin) available too.
278
278
279
279
### embedded
280
280
The embedded helper allow you to "embedded" a handlebars template inside a ```<script>``` HTML tag:
@@ -378,12 +378,12 @@ The generated code looks like this:
378
378
Finally, it converts message patterns like: ```Hi {0}``` into ```Hi {{arg0}}```. This make possible for the [I18n](https://github.com/fnando/i18n-js) JS library to interpolate variables.
379
379
380
380
### string helpers
381
-
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).
381
+
Functions like abbreviate, capitalize, join, dateFormat, yesno, etc., are available from [StringHelpers](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/main/java/com/github/jknack/handlebars/helper/StringHelpers.java).
382
382
383
383
> NOTE: You need to register string helpers (they are not added by default)
384
384
385
385
### conditional helpers
386
-
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).
386
+
Functions like eq, neq, lt, gt, and, or, not, etc., are available from [ConditionalHelpers](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/main/java/com/github/jknack/handlebars/helper/ConditionalHelpers.java).
387
387
388
388
> NOTE: You need to register conditional helpers (they are not added by default)
389
389
@@ -711,7 +711,7 @@ Context context = Context
711
711
.build();
712
712
```
713
713
714
-
Available in [Jackson 1.x](https://github.com/jknack/handlebars.java/tree/master/handlebars-json) and [Jackson 2.x](https://github.com/jknack/handlebars.java/tree/master/handlebars-jackson2) modules.
714
+
Available in [Jackson 1.x](https://github.com/iterable/handlebars.java/tree/master/handlebars-json) and [Jackson 2.x](https://github.com/iterable/handlebars.java/tree/master/handlebars-jackson2) modules.
715
715
716
716
#### Using multiples value resolvers
717
717
@@ -776,7 +776,7 @@ This cache implementation eliminates the window created by ```ConcurrentMapTempl
776
776
It follows the patterns described in [Java Concurrency in Practice](http://www.amazon.com/Java-Concurrency-Practice-Brian-Goetz/dp/0321349601) and ensures that a template will be compiled just once regardless of the number of threads.
777
777
778
778
779
-
3.```GuavaTemplateCache```: a template cache implementation built on top of [Google Guava](https://code.google.com/p/guava-libraries/wiki/CachesExplained). Available in [handlebars-guava-cache module](https://github.com/jknack/handlebars.java/tree/master/handlebars-guava-cache)
779
+
3.```GuavaTemplateCache```: a template cache implementation built on top of [Google Guava](https://code.google.com/p/guava-libraries/wiki/CachesExplained). Available in [handlebars-guava-cache module](https://github.com/iterable/handlebars.java/tree/master/handlebars-guava-cache)
780
780
781
781
You can configure Handlebars.java to use a cache by:
782
782
@@ -786,7 +786,7 @@ Handlebars hbs = new Handlebars()
786
786
```
787
787
788
788
### Using a MissingValueResolver (@deprecated)
789
-
NOTE: MissingValueResolver is available in ```<= 1.3.0```. For ```> 1.3.0``` use [Helper Missing](https://github.com/jknack/handlebars.java#helper-missing).
789
+
NOTE: MissingValueResolver is available in ```<= 1.3.0```. For ```> 1.3.0``` use [Helper Missing](https://github.com/iterable/handlebars.java#helper-missing).
790
790
791
791
A ```MissingValueResolver``` let you use default values for ```{{variable}}``` expressions resolved to ```null```.
792
792
@@ -853,7 +853,7 @@ Hello edgar!
853
853
Maven:
854
854
```xml
855
855
<dependency>
856
-
<groupId>com.github.jknack</groupId>
856
+
<groupId>com.iterable</groupId>
857
857
<artifactId>handlebars-json</artifactId>
858
858
<version>${handlebars-version}</version>
859
859
</dependency>
@@ -890,7 +890,7 @@ pretty: True, if the JSON content must be formatted. Default is: false.
890
890
Maven:
891
891
```xml
892
892
<dependency>
893
-
<groupId>com.github.jknack</groupId>
893
+
<groupId>com.iterable</groupId>
894
894
<artifactId>handlebars-jackson2</artifactId>
895
895
<version>${handlebars-version}</version>
896
896
</dependency>
@@ -903,7 +903,7 @@ Same as Jackson1.x, except for the name of the helper: ```Jackson2Helper```
903
903
Maven:
904
904
```xml
905
905
<dependency>
906
-
<groupId>com.github.jknack</groupId>
906
+
<groupId>com.iterable</groupId>
907
907
<artifactId>handlebars-markdown</artifactId>
908
908
<version>${handlebars-version}</version>
909
909
</dependency>
@@ -923,7 +923,7 @@ context: An object or null. Required.
923
923
Maven:
924
924
```xml
925
925
<dependency>
926
-
<groupId>com.github.jknack</groupId>
926
+
<groupId>com.iterable</groupId>
927
927
<artifactId>handlebars-humanize</artifactId>
928
928
<version>${handlebars-version}</version>
929
929
</dependency>
@@ -935,14 +935,14 @@ Usage:
935
935
HumanizeHelper.register(handlebars);
936
936
```
937
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.
938
+
See the JavaDoc of the [HumanizeHelper] (https://github.com/iterable/handlebars.java/blob/master/handlebars-humanize/src/main/java/com/github/jknack/handlebars/HumanizeHelper.java) for more information.
939
939
940
940
## SpringMVC
941
941
942
942
Maven:
943
943
```xml
944
944
<dependency>
945
-
<groupId>com.github.jknack</groupId>
945
+
<groupId>com.iterable</groupId>
946
946
<artifactId>handlebars-springmvc</artifactId>
947
947
<version>${handlebars-version}</version>
948
948
</dependency>
@@ -967,7 +967,7 @@ where:
967
967
* arg: the message's argument. Optional.
968
968
*default: the default's message. Optional.
969
969
970
-
Checkout the [HandlebarsViewResolver](https://github.com/jknack/handlebars.java/blob/master/handlebars-springmvc/src/main/java/com/github/jknack/handlebars/springmvc/HandlebarsViewResolver.java).
970
+
Checkout the [HandlebarsViewResolver](https://github.com/iterable/handlebars.java/blob/master/handlebars-springmvc/src/main/java/com/github/jknack/handlebars/springmvc/HandlebarsViewResolver.java).
*Passes the 123 tests from the [MustacheSpec](https://github.com/mustache/spec).
1030
-
*Tests can be found here [comments.yml](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/specs/CommentsTest.java), [delimiters.yml](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/specs/DelimitersTest.java), [interpolation.yml](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/specs/InterpolationTest.java), [inverted.yml](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/specs/InvertedTest.java), [lambdas.yml](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/specs/LambdasTest.java), [partials.yml](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/specs/PartialsTest.java), [sections.yml](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/specs/SectionsTest.java)
1030
+
*Tests can be found here [comments.yml](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/specs/CommentsTest.java), [delimiters.yml](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/specs/DelimitersTest.java), [interpolation.yml](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/specs/InterpolationTest.java), [inverted.yml](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/specs/InvertedTest.java), [lambdas.yml](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/specs/LambdasTest.java), [partials.yml](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/specs/PartialsTest.java), [sections.yml](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/specs/SectionsTest.java)
1031
1031
1032
1032
### Handlebars.js Compliant
1033
1033
*Passes all the [Handlebars.js tests](https://github.com/wycats/handlebars.js/blob/master/spec/qunit_spec.js)
1034
-
*Tests can be found here [basic context](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/BasicContextTest.java), [string literals](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/StringLiteralParametersTest.java), [inverted sections](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/InvertedSectionTest.java), [blocks](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/BlockTest.java), [block helper missing](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/BlockHelperMissingTest.java), [helper hash](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/HelperHashTest.java), [partials](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/PartialsTest.java)
1034
+
*Tests can be found here [basic context](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/BasicContextTest.java), [string literals](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/StringLiteralParametersTest.java), [inverted sections](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/InvertedSectionTest.java), [blocks](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/BlockTest.java), [block helper missing](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/BlockHelperMissingTest.java), [helper hash](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/HelperHashTest.java), [partials](https://github.com/iterable/handlebars.java/blob/master/handlebars/src/test/java/hbs/js/PartialsTest.java)
*Wondering what to work on?See task/bug list and pick up something you would like to work on.
1047
-
*Do you want to donate one or more helpers?See [handlebars=helpers](https://github.com/jknack/handlebars.java/tree/master/handlebars-helpers) a repository for community's helpers.
1048
-
*Create an issue or fix one from [issues list](https://github.com/jknack/handlebars.java/issues).
1047
+
*Do you want to donate one or more helpers?See [handlebars=helpers](https://github.com/iterable/handlebars.java/tree/master/handlebars-helpers) a repository for community's helpers.
1048
+
*Create an issue or fix one from [issues list](https://github.com/iterable/handlebars.java/issues).
1049
1049
*If you know the answer to a question posted to our [mailing list](https://groups.google.com/forum/#!forum/handlebarsjava) - don't hesitate to write a reply.
1050
1050
*Share your ideas or ask questions on [mailing list](https://groups.google.com/forum/#!forum/handlebarsjava) - don't hesitate to write a reply - that helps us improve javadocs/FAQ.
1051
1051
*If you miss a particular feature - browse or ask on the [mailing list](https://groups.google.com/forum/#!forum/handlebarsjava) - don't hesitate to write a reply, show us some sample code and describe the problem.
0 commit comments