UNPKG

@manuth/woltlab-compiler

Version:

A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components

36 lines (35 loc) 985 B
import { WoltLabXMLCompiler } from "./WoltLabXMLCompiler.js"; /** * Provides the functionality to compile `.xml`-files which contain `ejs`-strings. * * @template T * The type of the item which can be compiled by this compiler. */ export declare abstract class WoltLabEJSFileCompiler<T> extends WoltLabXMLCompiler<T> { /** * Initializes a new instance of the {@link WoltLabEJSFileCompiler `WoltLabEJSFileCompiler<T>`} class. * * @param item * The item to compile. */ constructor(item: T); /** * Gets the delimiter of the EJS-strings inside the document. */ protected get Delimiter(): string; /** * Gets the pattern to match against the document. */ protected get Pattern(): RegExp; /** * @inheritdoc */ protected get Document(): Document; /** * Fixes the ejs-tags inside the node. * * @param node * The node to fix. */ protected FixEJSTags(node: Node): void; }