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
The goal is to convert every "twig macro component" into TwigComponent (kevinpapst/TablerBundle#173) in TablerBundle.
As of today, there is no "best practice" or "how to" for implementing TwigComponent in bundles.
With the multi namespace available, we can configure it like this:
Will an auto-discovery be available later like Bundle Templates to auto map Bundle TwigComponents?
Should each twig file in <your-bundle>/templates/components be mounted as a Twig Component?
In our case, we already have a components folder that is NOT planned for Twig Component (this can be solved internally).
Depending on the answer to 2., can a bundle have "anonymous" components?
Should the DI only inject php classes that have the Symfony\UX\TwigComponent\Attribute\AsTwigComponent attribute and not mount them from "is there twig files in templates/components"
Nothing like that nope sorry…. But if you want, i can find 30mn during the week-end to centralize all the needs / hidden problems / things we want to préserve, etc
The goal is to convert every "twig macro component" into TwigComponent (kevinpapst/TablerBundle#173) in TablerBundle.
As of today, there is no "best practice" or "how to" for implementing TwigComponent in bundles.
With the multi namespace available, we can configure it like this:
Note
Keep in mind the
/twig_components
folder.twig
file in<your-bundle>/templates/components
be mounted as a Twig Component?In our case, we already have a
components
folder that is NOT planned for Twig Component (this can be solved internally).2.
, can a bundle have "anonymous" components?Symfony\UX\TwigComponent\Attribute\AsTwigComponent
attribute and not mount them from "is there twig files intemplates/components
"The text was updated successfully, but these errors were encountered: