|
3 | 3 | */
|
4 | 4 | /* eslint-disable no-param-reassign, no-unused-vars */
|
5 | 5 |
|
6 |
| -import Hogan from 'hogan.js'; |
| 6 | +import Handlebars from 'handlebars'; |
7 | 7 | import pretty from 'pretty';
|
8 | 8 | import { html, render } from 'lit-html';
|
9 | 9 | import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
|
@@ -175,7 +175,7 @@ export const panelsViewer = {
|
175 | 175 | } else {
|
176 | 176 | // vanilla render of pattern data
|
177 | 177 | template = document.getElementById(panel.templateID);
|
178 |
| - templateCompiled = Hogan.compile(template.innerHTML); |
| 178 | + templateCompiled = Handlebars.compile(template.innerHTML); |
179 | 179 | templateRendered = templateCompiled.render(patternData);
|
180 | 180 | const normalizedCode =
|
181 | 181 | normalizeWhitespace.normalize(templateRendered);
|
@@ -272,7 +272,7 @@ export const panelsViewer = {
|
272 | 272 | }
|
273 | 273 | }
|
274 | 274 |
|
275 |
| - // add *Exists attributes for Hogan templates |
| 275 | + // add *Exists attributes for Handlebars templates |
276 | 276 | // figure out if the description exists
|
277 | 277 | patternData.patternDescExists =
|
278 | 278 | patternData.patternDesc.length > 0 ||
|
@@ -304,7 +304,7 @@ export const panelsViewer = {
|
304 | 304 |
|
305 | 305 | // render all of the panels in the base panel template
|
306 | 306 | const template = document.querySelector('.pl-js-panel-template-base');
|
307 |
| - const templateCompiled = Hogan.compile(template.innerHTML); |
| 307 | + const templateCompiled = Handlebars.compile(template.innerHTML); |
308 | 308 | templateRendered = templateCompiled.render(patternData);
|
309 | 309 |
|
310 | 310 | // make sure templateRendered is modified to be an HTML element
|
|
0 commit comments