Replies: 1 comment 1 reply
-
|
Hello @mledwards, Namespacing is not required in your case : you can put your macros in a subdir of the Example: Use case:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Is it possible to do Twig namespacing in Cecil? I'm trying to reference components in a different folder to the layouts folder by doing
import "../components/hero/component.macro.twig" as hero, and I get the error messageLooks like you try to load a template outside configured directories (../components/hero/component.macro.twig)In Twig / PHP projects I would have usually done put this in the bootstrap.php
$loader->addPath( dirname(__DIR__). '/twig/src/components', 'components');, or I would have used thetwig.yamlfile to addSo that I can use
import "@components/hero/component.macro.twig" as heroAny help would be appreciated :)
Beta Was this translation helpful? Give feedback.
All reactions