Class 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
    • Method Detail

      • apply

        public CharSequence 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.