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.

9 lines (8 loc) 364 B
import { TemplateEngineEnum } from '../interfaces/template.types'; export declare abstract class TemplateEngine { static engineName: TemplateEngineEnum; static displayName: string; static peerPackage: string; abstract render(content: string, data?: Record<string, any>): Promise<string>; abstract validate(content: string): Promise<boolean>; }