Skip to content

Commit

Permalink
fix(engine_twig_php): Allow additional flexibility with twig namespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZackHawkinsMC committed Nov 7, 2019
1 parent f1ddd10 commit 07bfaa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/engine-twig-php/lib/engine_twig_php.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ const engine_twig_php = {
// get the path to the top-level folder of this pattern
// ex. /Users/bradfrost/sites/pattern-lab/packages/edition-twig/source/_patterns/00-atoms
const fullFolderPath = `${
tempPartial.split(selectedNamespace[0].id)[0]
}${selectedNamespace[0].id}`;
tempPartial.split(selectedNamespace[0].paths[index])[0]
}${selectedNamespace[0].paths[index]}`;

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

0 comments on commit 07bfaa3

Please sign in to comment.