@rr0/cms
Version:
RR0 Content Management System (CMS)
16 lines (15 loc) • 740 B
TypeScript
import { RegexReplacer, SsiEchoVarReplaceCommand, StringContextHandler } from "ssg-api";
import { HtmlRR0Context } from "../RR0Context.js";
/**
* Replaces the SSI expression "<!--#echo var="title" -->" by the page's <title> content,
* with a link if there's a <meta name="url"> content.
*/
export declare class SsiTitleReplaceCommand extends SsiEchoVarReplaceCommand {
protected defaultHandlers: StringContextHandler[];
/**
* @param defaultHandlers Will generate a title for a given context/file, if no title is found.
*/
constructor(defaultHandlers?: StringContextHandler[]);
protected createReplacer(context: HtmlRR0Context): Promise<RegexReplacer>;
protected getTitle(context: HtmlRR0Context): string;
}