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.
Generates a serializable Liquid
Contextobject that provides the necessary data models for various pages and includes custom variables fromglobalConfig, if configured in the admin.This function abstracts the serialization of complex structures—such as V4 model instances and the
customVariablesMap—to ensure compatibility with Liquid.