Interface InitHandlebarsHelperProps

interface InitHandlebarsHelperProps {
    compile: ((templateString: string, options?: HandlebarsCompileOptions) => HandlebarsTemplateDelegate);
    logger: TkmLogger;
    projectDir: string;
    safeString: ((str: string) => HandlebarsSafeString);
}

Properties

compile: ((templateString: string, options?: HandlebarsCompileOptions) => HandlebarsTemplateDelegate)

Compile template string

logger: TkmLogger

Logger instance.

projectDir: string

Current project directory.

safeString: ((str: string) => HandlebarsSafeString)

Create Handlebars SafeString instance. Handlebars will not perform html escape for SafeStrings.