@combino/plugin-eta
Version:
ETA template engine plugin for Combino
22 lines • 607 B
TypeScript
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 default function plugin(options?: {
patterns?: string[];
[key: string]: any;
}): Plugin;
//# sourceMappingURL=index.d.ts.map