Skip to content

Commit 8468351

Browse files
STRF-7393 fix addTemplates logic to not lose templates
1 parent e1c22a5 commit 8468351

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
## 4.2.2
6+
- Fix addTemplates logic in order to not lose templates on renderTheme function for Stencil CLI
7+
58
## 4.2.1
69
- Allow json helper to accept a SafeString as an argument
710
- Move SafeString unwrapping to common module

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class HandlebarsRenderer {
171171
const path = paths[i];
172172

173173
if (typeof this.handlebars.partials[path] !== 'undefined') {
174-
return;
174+
continue;
175175
}
176176

177177
try {
@@ -315,4 +315,4 @@ class HandlebarsRenderer {
315315
}
316316
}
317317

318-
module.exports = HandlebarsRenderer;
318+
module.exports = HandlebarsRenderer;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bigcommerce/stencil-paper-handlebars",
3-
"version": "4.2.1",
3+
"version": "4.2.2",
44
"description": "A paper plugin to render pages using Handlebars.js",
55
"main": "index.js",
66
"author": "Bigcommerce",

0 commit comments

Comments
 (0)