|
@@ -2,7 +2,7 @@
|
|
import { Observable, IFileRequest, Tools } from 'babylonjs';
|
|
import { Observable, IFileRequest, Tools } from 'babylonjs';
|
|
import { isUrl, camelToKebab, kebabToCamel } from '../helper';
|
|
import { isUrl, camelToKebab, kebabToCamel } from '../helper';
|
|
|
|
|
|
-import * as Handlebars from '../../assets/handlebars.min.js';
|
|
|
|
|
|
+import * as Handlebars from 'handlebars';
|
|
import { EventManager } from './eventManager';
|
|
import { EventManager } from './eventManager';
|
|
import { ITemplateConfiguration } from '../configuration/interfaces';
|
|
import { ITemplateConfiguration } from '../configuration/interfaces';
|
|
import { deepmerge } from '../helper/';
|
|
import { deepmerge } from '../helper/';
|
|
@@ -321,7 +321,7 @@ export class Template {
|
|
this.initPromise = htmlContentPromise.then(htmlTemplate => {
|
|
this.initPromise = htmlContentPromise.then(htmlTemplate => {
|
|
if (htmlTemplate) {
|
|
if (htmlTemplate) {
|
|
this._htmlTemplate = htmlTemplate;
|
|
this._htmlTemplate = htmlTemplate;
|
|
- let compiledTemplate = Handlebars.compile(htmlTemplate, { noEscape: (this._configuration.params && this._configuration.params.noEscape) });
|
|
|
|
|
|
+ let compiledTemplate = Handlebars.compile(htmlTemplate, { noEscape: (this._configuration.params && !!this._configuration.params.noEscape) });
|
|
let config = this._configuration.params || {};
|
|
let config = this._configuration.params || {};
|
|
this._rawHtml = compiledTemplate(config);
|
|
this._rawHtml = compiledTemplate(config);
|
|
try {
|
|
try {
|