Skip to content

Commit

Permalink
fix(pseudopatterns): use the template instead of the pseudo data file…
Browse files Browse the repository at this point in the history
… for template rendering #1308 (#1312)
  • Loading branch information
mfranzke authored Apr 17, 2021
1 parent b908c2f commit 7ecca69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/engine-twig/lib/engine_twig.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ var engine_twig = {

// render it
renderPattern: function renderPattern(pattern, data, partials) {
var patternPath = pattern.relPath;
var patternPath = pattern.basePattern
? pattern.basePattern.relPath
: pattern.relPath;
if (patternPath.lastIndexOf(metaPath) === 0) {
patternPath = patternPath.substring(metaPath.length + 1);
}
Expand Down

0 comments on commit 7ecca69

Please sign in to comment.