UNPKG

squirrelly

Version:

Lightweight, fast, and powerful JS template engine. Supports helpers, filters, template inheritance

5 lines (4 loc) 291 B
import { SqrlConfig, PartialConfig } from './config'; import { CallbackFn } from './file-handlers'; export declare type TemplateFunction = (data: object, config: SqrlConfig, cb?: CallbackFn) => string; export default function compile(str: string, env?: PartialConfig): TemplateFunction;