From c6a7ad0520fb7ea9a41c6decb1d3a46f2cee7c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Albeza?= Date: Mon, 1 Jul 2024 15:52:15 +0200 Subject: [PATCH] :bug: Fix template generation for storybook --- frontend/resources/templates/preview-body.mustache | 3 +-- frontend/scripts/_helpers.js | 12 +++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend/resources/templates/preview-body.mustache b/frontend/resources/templates/preview-body.mustache index fc2683716..216552e61 100644 --- a/frontend/resources/templates/preview-body.mustache +++ b/frontend/resources/templates/preview-body.mustache @@ -1,2 +1 @@ -{{>../public/images/sprites/symbol/icons.svg}} - +{{> ../public/images/sprites/symbol/icons.svg }} diff --git a/frontend/scripts/_helpers.js b/frontend/scripts/_helpers.js index 1dc4fb963..435531ca5 100644 --- a/frontend/scripts/_helpers.js +++ b/frontend/scripts/_helpers.js @@ -353,11 +353,13 @@ async function generateTemplates() { await fs.writeFile("./resources/public/index.html", content); - content = await renderTemplate("resources/templates/preview-body.mustache", { - manifest: manifest, - translations: JSON.stringify(translations), - }); - + content = await renderTemplate( + "resources/templates/preview-body.mustache", + { + manifest: manifest, + }, + partials, + ); await fs.writeFile("./.storybook/preview-body.html", content); content = await renderTemplate("resources/templates/render.mustache", {