Class LenientMethodHelper

java.lang.Object
org.onehippo.forge.templating.support.handlebars.helper.LenientMethodHelper
All Implemented Interfaces:
com.github.jknack.handlebars.Helper<Object>

public class LenientMethodHelper extends Object implements com.github.jknack.handlebars.Helper<Object>
Lenient Method Helper allowing missing parameters, filling in a reasonable empty value instead.
  • Constructor Details

    • LenientMethodHelper

      public LenientMethodHelper(Method method, Object source)
    • LenientMethodHelper

      public LenientMethodHelper(Method method, Object source, boolean lenient)
  • Method Details

    • apply

      public Object apply(Object context, com.github.jknack.handlebars.Options options) throws IOException
      Specified by:
      apply in interface com.github.jknack.handlebars.Helper<Object>
      Throws:
      IOException