UNPKG

woltlab-compiler

Version:

A compiler for WoltLab-Package Archives and WoltLab-Package Components

33 lines (32 loc) 886 B
import { XMLFileCompiler } from "./XMLFileCompiler"; /** * Provides the functionality to compile `xml`-files which contain `EJS`-strings. */ export declare abstract class EJSFileCompiler<T> extends XMLFileCompiler<T> { /** * Initializes a new instance of the `EJSFileCompiler<T>` class. * * @param item * The item to compile. */ constructor(item: T); /** * Gets the delimiter of the EJS-strings inside the document. */ protected readonly Delimiter: string; /** * Gets the pattern to match against the document. */ protected readonly Pattern: RegExp; /** * @inheritdoc */ protected readonly Document: Document; /** * Fixes the ejs-tags inside the node. * * @param node * The node to fix. */ protected FixEJSTags(node: Node): void; }