Fake Mirrors
    Preparing search index...

    Interface Templater

    Defines the public contract for a templater.

    Provides a simple method for rendering templates with variable substitution.

    interface Templater {
        render(template: string, data: TemplaterData): string;
    }

    Implemented by

    • 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.