Function fromRemoteLiquidTemplate

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

    Type Parameters

    Parameters

    • url: string

      Remote Liquid template URL

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

    Render function

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

        • container: HTMLElement
        • state: State

        Returns PromiseLike<void>

    import { fromRemoteLiquidTemplate } from "@nosto/autocomplete/liquid";

    const render = fromRemoteLiquidTemplate("https://example.com/template.liquid");