UNPKG

@karmaniverous/handlebars

Version:

Exposes Lodash & Numeral.js as Handlebars helpers, plus some other goodies.

16 lines (13 loc) 662 B
export { default as Handlebars } from 'handlebars'; /** * Recursively renders a Handlebars template string using the given context/data, * re-compiling the output until it stabilizes or a max depth is reached. * * @param template - The template string to render. * @param context - The context object used for rendering. * @param options - Optional Handlebars compile options. * @param maxDepth - Maximum number of recursive passes (default: 10). * @returns The fully rendered string. */ declare function recursiveRender<T extends object>(template: string, context: T, options?: CompileOptions, maxDepth?: number): string; export { recursiveRender };