Class ApplicationLayerTemplateGenerator<TemplateType>Abstract

Abstract class which acts as a base for application layer generators. This class provides a method to generate an application layer using template approach. It ensures that the required dependencies are provided in the context before invoking the specific template generator for the given capability.

ApplicationLayerGenerator

Type Parameters

Hierarchy (View Summary)

Implements

Constructors

Properties

_filePath: string
_templatePath: string
_templateRenderer: TemplateGenerator<TemplateType>
strategyIdentifier: string = ""

Methods

  • Retrieves the title of a template page in the specified language.

    Parameters

    • pageTitleLanguageString: undefined | LanguageString

      An object containing language-specific titles.

    • languageId: string = "en"

      The language identifier for the title. Defaults to "en", if not provided.

    Returns null | string

    The page title in the specified language, or the first available language if not found.