UNPKG

@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.

14 lines (13 loc) 642 B
import { TemplateEngine } from '../template-engine'; import { TemplateEngineEnum } from '../../interfaces/template.types'; import { CustomEngineOptions } from '../../interfaces/module-config.interface'; export declare class EjsEngine extends TemplateEngine { private readonly options; private readonly customOptions; static engineName: TemplateEngineEnum; static displayName: string; static peerPackage: string; constructor(options?: Record<string, any>, customOptions?: CustomEngineOptions); render(content: string, data?: Record<string, any>): Promise<string>; validate(content: string): Promise<boolean>; }