Creates a Helper class which exposes methods
- To register/unregister helpers
- To add/remove custom helpers
- To enable/disable inject helper
new
Helpers(injectionAllowed?: boolean,loglevel?: LogLevel | "off",)
Allow registration of a custom helper:
Parses a provided template to a string using an optional context
removeHelper: (name: string) => void
Allow removal of a registered custom helper:
setInjectionAllowed: (allowed: boolean) => void
Allows enabling/disabling of inject helper
private
injectionAllowed: boolean
private
registerDefaultHelpers: () => void
Registers all the default helpers and conditionally registers inject helper