Class AssignHelper
java.lang.Object
com.github.jknack.handlebars.helper.ext.AssignHelper
- All Implemented Interfaces:
com.github.jknack.handlebars.Helper<String>
You can use the assign helper to create auxiliary variables. Example:
{{#assign "benefitsTitle"}} benefits.{{type}}.title {{/assign}}
<span class="benefit-title"> {{i18n benefitsTitle}} </span>
- Author:
- https://github.com/Jarlakxen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
A singleton instance of this helper. -
NAME
The helper's name.- See Also:
-
-
Constructor Details
-
AssignHelper
public AssignHelper()
-
-
Method Details
-
apply
public Object apply(String variableName, com.github.jknack.handlebars.Options options) throws IOException - Specified by:
applyin interfacecom.github.jknack.handlebars.Helper<String>- Throws:
IOException
-