UNPKG

@combino/plugin-ejs-mate

Version:

EJS-Mate template engine plugin for Combino with layout support

32 lines 810 B
export interface Plugin { discover?: (context: any) => Promise<any> | any; compile?: (context: any) => Promise<any> | any; assemble?: (context: any) => Promise<any> | any; output?: (context: any) => Promise<void> | void; } export interface FileHookContext { sourcePath: string; id: string; content: string; data: Record<string, any>; allTemplates?: any[]; } export interface FileHookResult { content: string; id?: string; } export interface TemplateInfo { path: string; targetDir?: string; config?: any; files: Array<{ sourcePath: string; targetPath: string; content?: string; }>; } export default function plugin(options?: { patterns?: string[]; [key: string]: any; }): Plugin; //# sourceMappingURL=index.d.ts.map