Function fromRemoteMustacheTemplate

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

    Type Parameters

    Parameters

    • url: string

      Remote Mustache template URL

    • Optional options: {
          helpers?: object;
      }
      • Optional helpers?: object

    Returns ((container, state) => PromiseLike<void>)

    Render function

      • (container, state): PromiseLike<void>
      • Parameters

        • container: HTMLElement
        • state: State

        Returns PromiseLike<void>

    Example

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

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

Generated using TypeDoc