@karmaniverous/jeeves-watcher
    Preparing search index...

    Class TemplateEngine

    The template engine: holds compiled templates and renders them against context.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    hbs: typeof Handlebars

    Methods

    • Compile and cache a template from its source string.

      Parameters

      • key: string

        Cache key (rule index or named template).

      • source: string

        Handlebars template source.

      Returns CompiledTemplate

      The compiled template.

    • Render a compiled template against a context.

      Parameters

      • key: string

        The cache key of the compiled template.

      • context: Record<string, unknown>

        The data context for rendering.

      Returns string | null

      The rendered string, or null if the template was not found.