Skip to main content

XpmLiquidMatrixDrop class

Liquid drop that resolves matrix parameter values for templates.

Signature

export declare class XpmLiquidMatrixDrop extends Drop

Extends: Drop

Remarks

This drop exposes matrix values to the Liquid engine and performs nested substitutions when a matrix value contains Liquid syntax.

Matrix parameters are used during template expansion to generate multiple actions or build configurations from a single template definition. Each expanded instance receives a specific combination of matrix values.

Implements the same Drop pattern as XpmLiquidPropertiesDrop but for matrix-scoped variables. When a template accesses matrix.arch, the engine calls XpmLiquidMatrixDrop.liquidMethodMissing() which resolves the parameter value and recursively evaluates any nested Liquid syntax.

Matrix parameters are isolated per template instance, ensuring that each generated action or configuration has access only to its specific matrix combination.

Constructors

Constructor

Modifiers

Description

(constructor)({ log, engine, matrix, })

Constructs a matrix drop.

Properties

Property

Modifiers

Type

Description

_engine

protected

Liquid

The Liquid engine used to render nested substitutions.

_log

protected

Logger

The logger instance for output and diagnostics.

_matrix

protected

XpmLiquidSubstitutionsStrings

The matrix parameters map used for substitutions.

Methods

Method

Modifiers

Description

liquidMethodMissing(key, context)

Resolves a missing matrix parameter and performs nested substitutions.


Generated via tsdoc2docusaurus 1.3.0-pre by API Extractor/Documenter 7.55.2.