UNPKG

@n0safe/indirectus

Version:
28 lines 967 B
import { type Callback, type ILoaderAsync, Loader, type LoaderSource } from "nunjucks"; export type TemplateFile = { input: string; output: string; } | { output: string; template: string; }; export declare class TemplateLoader extends Loader implements ILoaderAsync { "async": true; static "async"?: true | undefined; private templateName; private localDirs; private projectDirs; private macroDirs; private templatesDirs; constructor(templateName: string, projectDirs: string[]); getTemplateDirs(): string[]; getTemplatesDirs(): string[]; getMacroDirs(): string[]; getFilterDirs(): string[]; getTagsDirs(): string[]; getFiles(): Promise<TemplateFile[]>; getFilterFiles(): Promise<string[]>; getFilters(): Promise<Record<string, (...args: any[]) => any>>; getSource(name: string, callback: Callback<Error, LoaderSource>): Promise<void>; } //# sourceMappingURL=template-loader.d.ts.map