You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I was wondering if it is possible create something analog to the following timber fallback functionality with primer.
Timber will look first in the child theme and then falls back to the parent theme (same as WordPress logic). The official load order is:
User-defined locations
Directory of calling PHP script (but not theme)
Child theme
Parent theme
Directory of calling PHP script (including the theme)
I basically want to do the same with primer. So I have the resources directory and lets say resourcesChild directory. If a template xyz.twig is not existing in resourcesChild it will look in resources for xyz.twig and render that one. Obviously includes must work across the 2 directories too.
Is that possible to set up with primer?
Another question: Is it possible to use other names for the twig file than template.twig? I would like to use unique names for all patterns, basically following the following structure:
component-a
component-a.twig
component-a.scss
component-a.js
data.php -> I would prefer component-a.php, .yaml, .json
component-b
component-b.twig
component-b.scss
component-b.js
data.php -> I would prefer component-b.php, .yaml, .json
Thanks for any answers.
The text was updated successfully, but these errors were encountered:
Hi there,
I was wondering if it is possible create something analog to the following timber fallback functionality with primer.
I basically want to do the same with primer. So I have the resources directory and lets say resourcesChild directory. If a template xyz.twig is not existing in resourcesChild it will look in resources for xyz.twig and render that one. Obviously includes must work across the 2 directories too.
Is that possible to set up with primer?
Another question: Is it possible to use other names for the twig file than template.twig? I would like to use unique names for all patterns, basically following the following structure:
Thanks for any answers.
The text was updated successfully, but these errors were encountered: