@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.
16 lines (15 loc) • 697 B
TypeScript
import { TemplateEngineEnum } from '../../interfaces/template.types';
import { TemplateEngine } from '../template-engine';
import { CustomEngineOptions } from '../../interfaces/module-config.interface';
export declare class HandlebarsEngine extends TemplateEngine {
private readonly options;
private readonly customOptions;
static engineName: TemplateEngineEnum;
static displayName: string;
static peerPackage: string;
private instance?;
constructor(options?: Record<string, any>, customOptions?: CustomEngineOptions);
private getInstance;
render(content: string, data?: Record<string, any>): Promise<string>;
validate(content: string): Promise<boolean>;
}