@combino/plugin-ejs
Version:
EJS template engine plugin for Combino
23 lines • 646 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;
}
/**
* EJS Plugin Factory Function
* Creates a plugin that processes EJS templates
*/
export default function plugin(options?: any): Plugin;
//# sourceMappingURL=index.d.ts.map