Skip to content

Commit 46bec4f

Browse files
committed
providing correct paths and clean names
1 parent cdac753 commit 46bec4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PatternLab/PatternEngine/Twig/TwigUtil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function loadMacros($instance, $instanceType) {
3939
$finder->files()->name("*.".$macroExt)->in($macroDir);
4040
$finder->sortByName();
4141
foreach ($finder as $file) {
42-
$instance->addGlobal($file->getBasename($macroExt), $twig->loadTemplate($file->getRealPath()));
42+
$instance->addGlobal($file->getBasename(".".$macroExt), $instance->loadTemplate($file->getBasename()));
4343
}
4444

4545
} else {

0 commit comments

Comments
 (0)