Class BaseHelper

    • Constructor Detail

      • BaseHelper

        public BaseHelper()
    • Method Detail

      • apply

        public abstract Object apply​(Object context,
                                     com.github.jknack.handlebars.Options options)
                              throws IOException
        The apply method is the main entry point for handlebars.java helpers.

        It is called internally by the handlebars.java engine when a matching handlebars.java expression is encountered.

        Specified by:
        apply in interface com.github.jknack.handlebars.Helper<Object>
        Parameters:
        context - The currently executing context.
        options - The options.
        Returns:
        The generated output.
        Throws:
        IOException - If processing of the expressions fails.