Skip to content

Commit 59de7ac

Browse files
Merge pull request #1093 from zhawkins/feature/1092--twig-namespaces
Feature/1092 twig namespaces
2 parents 8328236 + 07bfaa3 commit 59de7ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/engine-twig-php/lib/engine_twig_php.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ const engine_twig_php = {
210210
// get the path to the top-level folder of this pattern
211211
// ex. /Users/bradfrost/sites/pattern-lab/packages/edition-twig/source/_patterns/00-atoms
212212
const fullFolderPath = `${
213-
tempPartial.split(selectedNamespace[0].id)[0]
214-
}${selectedNamespace[0].id}`;
213+
tempPartial.split(selectedNamespace[0].paths[index])[0]
214+
}${selectedNamespace[0].paths[index]}`;
215215

216216
// then tease out the folder name itself (including the # prefix)
217217
// ex. 00-atoms

0 commit comments

Comments
 (0)