import { IHtmlEngineHelper } from './html-engine-helper.interface'; const Handlebars = require('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); } }