1 | import { IHtmlEngineHelper } from './html-engine-helper.interface';
|
2 | import * as Handlebars from 'handlebars';
|
3 |
|
4 | export class CapitalizeHelper implements IHtmlEngineHelper {
|
5 | public helperFunc(context: any, text: string) {
|
6 | return text.charAt(0).toUpperCase() + text.slice(1);
|
7 | }
|
8 | }
|