XpmDataModel class
Represents a lazy-loading data model for an xpm package.
Signature
export declare class XpmDataModel
Remarks
This class prepares substitution variables, creates the Liquid engine, and exposes actions and build configurations defined in the package.
The package processor serves as the top-level coordinator for all Liquid-based template processing in an xpm package. It establishes the foundation for variable substitution throughout the package hierarchy:
- Initializes base substitution variables (platform detection, system information, etc.).
- Adds package-specific variables from
package.jsonmetadata. - Merges user-defined properties from
xpack.properties. - Creates package-level actions accessible across all contexts.
- Creates build configurations, each inheriting the base substitution context and adding configuration-specific variables.
This hierarchical structure ensures that templates at any level have access to appropriate variables while maintaining clear scoping rules. Package-level actions are available globally, while configuration-level actions are scoped to their respective configurations.
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a Liquid package processor. |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
Liquid |
The Liquid engine used for substitutions. | |
|
|
The JSON package definition. | ||
|
|
Logger |
The logger instance for output and diagnostics. | |
|
|
The actions collection for this package. | ||
|
|
The build configurations collection for this package. | ||
|
|
The variables available for Liquid substitutions. |
Generated via tsdoc2docusaurus 1.3.0-pre by API Extractor/Documenter 7.55.2.