UNPKG

@osaedasia/oresume

Version:

A user-friendly library for generating complete Single Page Applications (SPAs)

26 lines (25 loc) 1.25 kB
import { IPipelineStep } from "../../../domain/definitions/interfaces/parser/IPipelineStep"; import { HtmlParsingContext } from "../HtmlParsingContext"; /** * Implements the pipeline step for processing string templates in HTML parsing. * Handles interpolation of dynamic template values and pattern detection. * @implements {IPipelineStep<HtmlParsingContext>} */ export declare class StringTemplateParsingStep implements IPipelineStep<HtmlParsingContext> { /** @inheritDoc */ execute(ctx: HtmlParsingContext): void; /** * Processes template values and updates the context with any detected patterns. * @param {HtmlParsingContext} ctx The parsing context for pattern tracking. * @param {unknown} value The template value to process. * @returns {string} The processed HTML string or pattern marker. */ private _processTemplateValue; /** * Attempts to detect patterns in a value using available pattern services. * @param {HtmlParsingContext} ctx The parsing context containing pattern services. * @param {unknown} value The value to check for patterns. * @returns {string} The pattern marker if a pattern is detected, or the stringified value. */ private _detectPatterns; }