java.lang.Object
com.github.jknack.handlebars.helper.ext.AssignHelper
All Implemented Interfaces:
com.github.jknack.handlebars.Helper<String>

public class AssignHelper extends Object implements 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
    Modifier and Type
    Field
    Description
    static final com.github.jknack.handlebars.Helper<String>
    A singleton instance of this helper.
    static final String
    The helper's name.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(String variableName, com.github.jknack.handlebars.Options options)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANCE

      public static final com.github.jknack.handlebars.Helper<String> INSTANCE
      A singleton instance of this helper.
    • NAME

      public static final String 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:
      apply in interface com.github.jknack.handlebars.Helper<String>
      Throws:
      IOException