Class PartialHelper

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

public class PartialHelper extends Object implements Helper<Object>
The partial registry helper. It stores templates in the current execution context. Later the BlockHelper helper read the registry and apply the template.
Since:
0.3.0
  • Field Details

  • Constructor Details

    • PartialHelper

      public PartialHelper()
  • Method Details

    • apply

      public Object apply(Object context, Options options) throws IOException
      Description copied from interface: Helper
      Apply the helper to the context.
      Specified by:
      apply in interface Helper<Object>
      Parameters:
      context - The context object.
      options - The options object.
      Returns:
      A string result.
      Throws:
      IOException - If a template cannot be loaded.