From ffac83a4d2ec9866e6e71aef86832cab66b18ad9 Mon Sep 17 00:00:00 2001
From: Maximilian <787658+mfranzke@users.noreply.github.com>
Date: Thu, 29 Dec 2022 22:56:10 +0100
Subject: [PATCH 1/8] fix: we need to update that template to handlebars
the previous syntax might have been fine for mustache, but we should both explicitly use the block helpers as well as mind the context of variables within each helpers.
---
.../src/html/partials/base-template.html | 68 +++++++++----------
1 file changed, 34 insertions(+), 34 deletions(-)
diff --git a/packages/uikit-workshop/src/html/partials/base-template.html b/packages/uikit-workshop/src/html/partials/base-template.html
index 9ec4c1556..c0e787149 100755
--- a/packages/uikit-workshop/src/html/partials/base-template.html
+++ b/packages/uikit-workshop/src/html/partials/base-template.html
@@ -1,85 +1,85 @@
-{{# descBlockExists }}
+{{#if descBlockExists }}
- {{# isPatternView }}
+ {{#if isPatternView }}
- {{/ isPatternView }} {{# patternDescExists }}
+ {{/if }} {{#if patternDescExists }}
- {{{ patternDesc }}} {{# patternDescAdditions }} {{{ patternDescAdditions }}}
- {{/ patternDescAdditions }}
+ {{{ patternDesc }}} {{#if patternDescAdditions }} {{{ patternDescAdditions
+ }}} {{/if }}
- {{/ patternDescExists }} {{# lineageExists }}
+ {{/if }} {{#if lineageExists }}
The
{{ patternName }}
- pattern contains the following patterns: {{# lineage }}
+ pattern contains the following patterns: {{#each lineage }}
- {{ lineagePattern }} {{# lineageState }}
- {{/ lineageState }}
+ {{/if }}
- {{# hasComma }}, {{/ hasComma }} {{/ lineage }}
+ {{#if hasComma }}, {{/if }} {{/each }}
- {{/ lineageExists }} {{# lineageRExists }}
+ {{/if }} {{#if lineageRExists }}
The
{{ patternName }}
- pattern is included in the following patterns: {{# lineageR }}
+ pattern is included in the following patterns: {{#each lineageR }}
- {{ lineagePattern }} {{# lineageState }}
- {{/ lineageState }}
+ {{/if }}
- {{# hasComma }}, {{/ hasComma }} {{/ lineageR }}
+ {{#if hasComma }}, {{/if }} {{/each }}
- {{/ lineageRExists }} {{# annotationExists }}
+ {{/if }} {{#if annotationExists }}
Annotations
- {{# annotations }}
+ {{#each annotations }}
{{ title }}
@@ -87,49 +87,49 @@ {{ title }}
- {{/ annotations }}
+ {{/each }}
- {{/ annotationExists }}
+ {{/if }}
-{{/ descBlockExists }}
+{{/if }}
- {{# panels }}
+ {{#each panels }}
Copy
@@ -166,7 +166,7 @@ {{ title }}
{{{ content }}}
- {{/ panels }}
+ {{/each }}
From 136fcbe0916252fbcb35fdb1608b24a46bc64662 Mon Sep 17 00:00:00 2001
From: Maximilian <787658+mfranzke@users.noreply.github.com>
Date: Thu, 29 Dec 2022 22:56:31 +0100
Subject: [PATCH 2/8] chore: additionally updating the template type
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
from mustache to handlebars; wouldn't hurt …
---
packages/uikit-workshop/src/html/index.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/packages/uikit-workshop/src/html/index.html b/packages/uikit-workshop/src/html/index.html
index 00b7b7a21..a4e65d7d1 100644
--- a/packages/uikit-workshop/src/html/index.html
+++ b/packages/uikit-workshop/src/html/index.html
@@ -26,7 +26,9 @@
-
From 3d9693298c9661a60de87c835b2d1f1caac316b5 Mon Sep 17 00:00:00 2001
From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com>
Date: Thu, 29 Dec 2022 23:10:50 +0100
Subject: [PATCH 3/8] Update index.html
---
packages/uikit-workshop/src/html/index.html | 2 --
1 file changed, 2 deletions(-)
diff --git a/packages/uikit-workshop/src/html/index.html b/packages/uikit-workshop/src/html/index.html
index a4e65d7d1..b5f8174d1 100644
--- a/packages/uikit-workshop/src/html/index.html
+++ b/packages/uikit-workshop/src/html/index.html
@@ -27,8 +27,6 @@
From 7def87d96cb301d1430601ca3327d5896e20f17f Mon Sep 17 00:00:00 2001
From: Maximilian <787658+mfranzke@users.noreply.github.com>
Date: Thu, 29 Dec 2022 23:28:21 +0100
Subject: [PATCH 4/8] fix: this ones actually an iteration
---
packages/uikit-workshop/src/html/partials/base-template.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/uikit-workshop/src/html/partials/base-template.html b/packages/uikit-workshop/src/html/partials/base-template.html
index c0e787149..f8c6532ee 100755
--- a/packages/uikit-workshop/src/html/partials/base-template.html
+++ b/packages/uikit-workshop/src/html/partials/base-template.html
@@ -8,13 +8,13 @@