@ackplus/nest-dynamic-templates
Version:
A powerful and flexible dynamic template rendering library for NestJS applications with support for Nunjucks, Handlebars, EJS, Pug, MJML, Markdown, and more.
12 lines (11 loc) • 432 B
TypeScript
import { RenderStage, TemplateRenderError } from './template.errors';
export interface RenderContextMeta {
stage: RenderStage;
engine?: string;
language?: string;
templateName?: string;
scope?: string;
scopeId?: string;
locale?: string;
}
export declare function diagnoseRenderError(cause: unknown, source: string, context: Record<string, any> | undefined, meta: RenderContextMeta): TemplateRenderError;