• Load a remote Mustache template and render it into a container

    Type Parameters

    Parameters

    • url: string

      Remote Mustache template URL

    • Optionaloptions: { helpers?: object }

    Returns (container: HTMLElement, state: State) => PromiseLike<void>

    Render function

    import { fromRemoteMustacheTemplate } from "@nosto/autocomplete/mustache";

    const render = fromRemoteMustacheTemplate("https://example.com/template.mustache");