Skip to main content

TemplateExpander._expandName() method

Expands a template name with matrix parameter substitutions.

Signature

protected _expandName(input: {
templateName: string;
combination: Record<string, string>;
templateType: string;
}): Promise<string>;

Parameters

Parameter

Type

Description

{ templateName, combination, templateType, }

(not declared)

input

{ templateName: string; combination: Record<string, string>; templateType: string; }

Returns

Promise<string>

A promise that resolves to the expanded name after substitution.

Exceptions

ConfigurationError If Liquid substitution fails, with context about the template name.

Remarks

This helper method performs Liquid template substitution on the template name using the specific matrix combination values. It wraps the substitution operation with error handling to provide context about which template failed.

The method adds the matrix parameters to the substitution variables hierarchy under the matrix namespace, making them accessible in Liquid templates via syntax like {{ matrix.arch }}.


Generated via tsdoc2docusaurus 1.3.2 by API Extractor/Documenter 7.57.2.