Skip to content

Commit

Permalink
v4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jknack committed Jun 11, 2018
1 parent 3aec1d4 commit 8e0a2f1
Show file tree
Hide file tree
Showing 20 changed files with 35 additions and 30 deletions.
2 changes: 1 addition & 1 deletion handlebars-guava-cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars.java</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion handlebars-helpers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars.java</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* Handlebars Helper for JodaTime ReadableInstance objects.
*
* @author @mrhanlon https://github.com/mrhanlon
* @author mrhanlon
*/
public enum JodaHelper implements Helper<ReadableInstant> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ public enum NumberHelper implements Helper<Object> {
* You can use the isEven helper to return a value only if the first argument
* is even. Otherwise return null.
*
* <pre>{@code
* <li class="{{isEven value "leftBox"}}">
*
* }</pre>
* If value is 2, the output will be "leftBox".
*
*/
Expand All @@ -52,8 +53,9 @@ public CharSequence safeApply(final Number value, final Options options) {
* You can use the isOdd helper to return a value only if the first argument
* is odd. Otherwise return null.
*
* <pre>{@code
* <li class="{{isOdd value "rightBox"}}">
*
* }</pre>
* If value is 3, the output will be "rightBox".
*
*/
Expand All @@ -68,8 +70,9 @@ public CharSequence safeApply(final Number value, final Options options) {
* You can use the stripes helper to return different value if the passed
* argument is odd or even.
*
* <pre>{@code
* <tr class="{{stripes value "row-even" "row-odd"}}">
*
* }</pre>
* If value is 2, the output will be "row-even".
*
*/
Expand Down
2 changes: 1 addition & 1 deletion handlebars-humanize/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars.java</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public Object apply(final Object value, final Options options)
* <p>
* Constructs a message with pluralization logic from the given template.
* </p>
* <h5>Examples:</h5>
* Examples:
*
* <pre>
* MessageFormat msg =
Expand Down Expand Up @@ -274,7 +274,7 @@ public Object apply(final Object value, final Options options)
* {{pluralize "pattern" arg0, arg1, ..., argn [locale="default"]}}
* </pre>
*
* @see Humanize#pluralize(String, Locale)
* @see Humanize#pluralizeFormat(String, Locale)
*/
pluralize {
@Override
Expand All @@ -289,6 +289,7 @@ public Object apply(final Object value, final Options options)
* <p>
* Transforms a text into a representation suitable to be used in an URL.
* </p>
* <pre>{@code
* <table border="0" cellspacing="0" cellpadding="3" width="100%">
* <tr>
* <th class="colFirst">Input</th>
Expand All @@ -303,6 +304,7 @@ public Object apply(final Object value, final Options options)
* <td>"lo-siento-no-hablo-espanol"</td>
* </tr>
* </table>
* }</pre>
*
* <pre>
* {{slugify string}}
Expand Down
2 changes: 1 addition & 1 deletion handlebars-jackson2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars.java</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion handlebars-markdown/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars.java</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public class MarkdownHelper implements Helper<Object> {

/**
* A singleton version of {@link Jackson2Helper}.
* A singleton version of {@link MarkdownHelper}.
*/
public static final Helper<Object> INSTANCE = new MarkdownHelper();

Expand Down
2 changes: 1 addition & 1 deletion handlebars-maven-plugin-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars.java</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion handlebars-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars.java</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion handlebars-proto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars.java</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion handlebars-springmvc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars.java</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion handlebars/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars.java</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ public Handlebars registerHelpers(final String filename, final InputStream sourc
* @param filename The file name (just for debugging purpose). Required.
* @param source The JavaScript source. Required.
* @return This handlebars object.
* @throws Exception If the JavaScript helpers can't be registered.
* @throws IOException If the JavaScript helpers can't be registered.
*/
@Override
public Handlebars registerHelpers(final String filename, final String source) throws IOException {
Expand Down Expand Up @@ -1251,9 +1251,9 @@ public Handlebars parentScopeResolution(final boolean parentScopeResolution) {
/**
* If true, partial blocks will implicitly be evaluated before the partials will actually
* be executed. If false, you need to explicitly evaluate and render partial blocks with
* <pre>
* <pre>{@code
* {{> @partial-block}}
* </pre>
* }</pre>
* Attention: If this is set to true, Handlebars works *much* slower! while rendering
* partial blocks. Default is: true for compatibility reasons.
*
Expand All @@ -1269,9 +1269,9 @@ public boolean preEvaluatePartialBlocks() {
/**
* If true, partial blocks will implicitly be evaluated before the partials will actually
* be executed. If false, you need to explicitly evaluate and render partial blocks with
* <pre>
* <pre>{@code
* {{> @partial-block}}
* </pre>
* }</pre>
* Attention: If this is set to true, Handlebars works *much* slower! while rendering
* partial blocks. Default is: true for compatibility reasons.
*
Expand All @@ -1289,9 +1289,9 @@ public void setPreEvaluatePartialBlocks(final boolean preEvaluatePartialBlocks)
* If true, partial blocks will implicitly be evaluated before the partials will actually
* be executed. If false, you need to explicitly evaluate and render partial blocks with
*
* <pre>
* <pre>{@code
* {{> @partial-block}}
* </pre>
* }</pre>
* Attention: If this is set to true, Handlebars works *much* slower! while rendering
* partial blocks. Default is: true for compatibility reasons.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* Inline partials via {@link Decorator} API.
*
* <pre>
* {{#*inline \"myPartial\"}}success{{/inline}}{{> myPartial}}
* {{#*inline \"myPartial\"}}success{{/inline}}{{&gt; myPartial}}
* </pre>
*
* @author edgar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* It was introduced with dynamic partials:
*
* <pre>
* {{> (lookup '.' 'myVariable') }}
* {{&gt; (lookup '.' 'myVariable') }}
* </pre>
*
* @author edgar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* key, nothing will be rendered.
* All variables are HTML escaped by default. If you want to return unescaped
* HTML, use the triple mustache: {{{name}}}.
* You can also use & to unescape a variable: {{& name}}. This may be useful
* You can also use &amp; to unescape a variable: {{&amp; name}}. This may be useful
* when changing delimiters.
*
* @author edgar.espina
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

/**
* The template source. Implementation of {@link TemplateSource} must implement
* {@link #equals(Object)} and {@link #hashCode()} methods. This two methods are the core of the
* cache system.
* <code>equals(Object)</code> and <code>hashCode()</code> methods. This two methods are the core
* of the cache system.
*
* @author edgar.espina
* @since 0.11.0
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars.java</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.0</version>
<packaging>pom</packaging>

<name>Handlebars.java</name>
Expand Down

0 comments on commit 8e0a2f1

Please sign in to comment.