Quick fix to load helpers

This commit is contained in:
Kalle Mansikkaniemi 2023-05-29 10:58:05 +03:00
parent 7247400653
commit 9e082b800a
2 changed files with 7295 additions and 17392 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
import { html } from 'common-tags';
import * as Handlebars from 'handlebars';
import * as HandlebarsHelpers from 'handlebars-helpers';
import 'core-js/modules/es7.array.includes.js';
import 'core-js/modules/es6.string.includes.js';
@ -17,7 +18,9 @@ abstract class BaseTemplateService {
}
private async LoadHandlebarsHelpers() {
this._helper = require('handlebars-helpers');
this._helper = HandlebarsHelpers({
handlebars: Handlebars
});
}
/**