Class PrecompileHelper

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

public final class PrecompileHelper extends Object implements Helper<String>
Precompile a template to JavaScript using handlebars.js.
Since:
0.6.0
  • Field Details

  • Method Details

    • apply

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