Function fromRemoteLiquidTemplate

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

    Type Parameters

    Parameters

    • url: string

      Remote Liquid template URL

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

    Render function

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

        • container: HTMLElement
        • state: State

        Returns PromiseLike<void>

    Example

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

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

Generated using TypeDoc