Websites v4 docs v5.2.5
    Preparing search index...

    Function buildLiquidContext

    • Generates a serializable Liquid Context object that provides the necessary data models for various pages and includes custom variables from globalConfig, if configured in the admin.

      This function abstracts the serialization of complex structures—such as V4 model instances and the customVariables Map—to ensure compatibility with Liquid.

      Parameters

      Returns Context