XpmLiquidPropertiesDrop class
Liquid drop that resolves property values for template substitutions.
Signature
export declare class XpmLiquidPropertiesDrop extends Drop
Extends: Drop
Remarks
This drop exposes properties to the Liquid engine and performs additional substitutions when a property value itself contains Liquid syntax.
Implements the Liquid Drop pattern to provide lazy property resolution and recursive template evaluation. When a template accesses properties.foo, the Liquid engine calls XpmLiquidPropertiesDrop.liquidMethodMissing() which:
- Looks up the property value in the properties map.
- Checks if the value contains Liquid syntax (
{{or{%). - If yes, recursively evaluates the value as a Liquid template.
- Returns the final resolved value.
This enables multi-level property references where one property can reference another, which can reference yet another, with the engine automatically resolving the entire chain.
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a properties drop. |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
Liquid |
The Liquid engine used to render nested substitutions. | |
|
|
Logger |
The logger instance for output and diagnostics. | |
|
|
The properties map used for substitutions. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Resolves a missing property and performs nested substitutions. |
Generated via tsdoc2docusaurus 1.3.0-pre by API Extractor/Documenter 7.55.2.