zibri
    Preparing search index...

    Class HandlebarUtilitiesAbstract

    Utilities for handling handlebar templates.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Initializes the handlebar utilities.

      Parameters

      • H: typeof Handlebars

        The external handlebar object. Is needed so helpers can be registered both inside and outside of Zibri.

      Returns Promise<void>

    • Parses the given handlebars string into an AST.

      Parameters

      • input: string

        The handlebars template in form of a string.

      • Optionaloptions: ParseOptions

        Additional options for parsing the template.

      Returns AstProgram

      The abstract syntax tree of the template.

    • Compiles the given handlebars string.

      Type Parameters

      • T

      Parameters

      • input: string

        The handlebars template in form of a string.

      • Optionaloptions: CompileOptions

        Additional options for compilation.

      Returns HandlebarsTemplateDelegate<T>

      The compiled template function.