@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
17 lines (16 loc) • 726 B
TypeScript
import { TemplateInfo as ITemplateInfo, TemplateError, TemplateType } from '../type';
import { FileMetaInfo } from '../../fs/type';
export declare class TemplateInfo implements ITemplateInfo {
name: string;
template: string;
fi: FileMetaInfo;
constructor(name: string, template: string, fi: FileMetaInfo);
identifierBase(): string;
errWithFileContext(what: string, err: Error): TemplateError;
isZero(): boolean;
copy(): TemplateInfo;
getCleanContent(): string;
}
export declare function loadTemplate(name: string, fim: FileMetaInfo): Promise<TemplateInfo>;
export declare function resolveTemplateType(name: string): TemplateType;
export declare function isShortcode(name: string): boolean;