Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

handlebars-helpers

A collection of Handlebars.java helpers, donated by the community.

create auxiliary/temprary variables. Example:

{{#assign "benefitsTitle"}} benefits.{{type}}.title {{/assign}}
<span class="benefit-title"> {{i18n benefitsTitle}} </span>

commons functions for numbers

{{isEven number}} // output: even

{{isEven number "row-even"}} // output: row-even

include

This is a port of handlebars-lang/handlebars.js#368.

NOTE: The helper is required if you want to use handlebars.js, bc handlebars.js doesn't implement partials according to the Mustache Spec. All the feature of the include helper are supported with plain partials in Handlebars.java.