Websites v4 docs v5.2.4
    Preparing search index...
    • Renders a Liquid template with custom handling for undefined variables.

      This function should be used instead of calling liquid.parseAndRender directly, as the LiquidJS engine does not provide a built-in way to customize behavior for undefined variables. It uses injectDefaultFilter to append a fallback value for each variable where necessary.

      Parameters

      • template: string

        The Liquid template string to render.

      • context: Context

        The context object supplying variable values.

      Returns Promise<any>

      The rendered output string.