Skip to content

Commit 7ecca69

Browse files
authored
fix(pseudopatterns): use the template instead of the pseudo data file for template rendering #1308 (#1312)
1 parent b908c2f commit 7ecca69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/engine-twig/lib/engine_twig.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ var engine_twig = {
130130

131131
// render it
132132
renderPattern: function renderPattern(pattern, data, partials) {
133-
var patternPath = pattern.relPath;
133+
var patternPath = pattern.basePattern
134+
? pattern.basePattern.relPath
135+
: pattern.relPath;
134136
if (patternPath.lastIndexOf(metaPath) === 0) {
135137
patternPath = patternPath.substring(metaPath.length + 1);
136138
}

0 commit comments

Comments
 (0)