import { IHtmlEngineHelper } from './html-engine-helper.interface'; import * as Handlebars from 'handlebars'; export class ObjectHelper implements IHtmlEngineHelper { public helperFunc(context: any, text: string) { text = JSON.stringify(text); text = text.replace(/{"/, '{
    "'); text = text.replace(/,"/, ',
    "'); text = text.replace(/}$/, '
}'); return new Handlebars.SafeString(text); } }