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

public class IncludeHelper extends Object implements com.github.jknack.handlebars.Helper<String>
Allows to include partials with custom context. This is a port of https://github.com/wycats/handlebars.js/pull/368
Author:
https://github.com/c089
  • 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

    • IncludeHelper

      public IncludeHelper()
  • Method Details

    • apply

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