Fake Mirrors
    Preparing search index...

    Class EtaTemplater

    Eta-based templater implementation.

    Uses the lightweight and fast Eta template engine as the backend.

    https://eta.js.org - Eta template engine documentation

    Implements

    • Renders a template string with the provided data.

      This method takes a template containing placeholders and a data object, and returns the rendered string with all placeholders replaced.

      Parameters

      • template: string

        The template string to render.

      • data: TemplaterData

        Key-value pairs for variable substitution.

      Returns string

      The rendered string.

      TemplaterError If template rendering fails.

    • Registers the templater as a singleton in the DI container.

      Parameters

      • container: DIContainer

        The DI container to register in.

      Returns void