UNPKG

@knapsack/app

Version:

Build Design Systems with Knapsack

24 lines 739 B
import Handlebars from 'handlebars'; /** * Compile Handlebars Template to render function * @example * const createGreetingText = hbsCompile<{ name: string }>('Hi {{ name }}'); * createGreetingText({ name: 'John' }); // 'Hi John' */ export declare const hbsCompile: typeof Handlebars.compile; /** * Render Handlebars mini-templates * i.e. `Hello {{ text }}` * Hbs Helpers: camelCase, snakeCase, pascalCase, paramCase * @see https://handlebarsjs.com * @example {{ camelCase text }} * @example * {{#each items}} * {{this.id}} * {{/each}} */ export declare function hbsRenderString({ hbsString, data, }: { hbsString: string; data?: Record<string, unknown>; }): string; //# sourceMappingURL=handlebars-helpers.d.ts.map