Drop¶
- class liquid.LiquidObject(*args, **kwargs)¶
Bases:
Protocol- __liquid_getattr__(name: str, context: RenderContext) object¶
Return the value of a Liquid property.
The context is available for resolving values that depend on the current render context. Implementations should raise an AttributeError exception when a property cannot be resolved.
This synchronous method is used during synchronous rendering.
- __liquid_hasattr__(name: str, context: RenderContext) bool¶
Return whether a Liquid property with the given name exists.
The context is available for property-existence checks that depend on the current render context. Implementations should distinguish between a missing property and an existing property whose value is None.
- class liquid.LiquidAsyncObject(*args, **kwargs)¶
Bases:
Protocol