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
Is your feature request related to a problem? Please describe.
Organizing reusable template parts allows us to quickly add elements in future pages we build, directly injecting content into them with a simple controller template var.
Describe the solution you'd like
Adding templates to the partials based on possible reusable pieces of the dashboard, and wire existing parts to these new partials.
Describe alternatives you've considered
Using includes with named variables Vs. Embedding Controllers. Recommended to use include technique (less effort, more gain). The latter is very overkill for what we need in this situation, but in some cases can be justified, although needs further planning on structuring the controller folder and naming structure.
Is your feature request related to a problem? Please describe.
Organizing reusable template parts allows us to quickly add elements in future pages we build, directly injecting content into them with a simple controller template var.
Describe the solution you'd like
Adding templates to the
partials
based on possible reusable pieces of the dashboard, and wire existing parts to these new partials.Describe alternatives you've considered
Using includes with named variables Vs. Embedding Controllers. Recommended to use include technique (less effort, more gain). The latter is very overkill for what we need in this situation, but in some cases can be justified, although needs further planning on structuring the controller folder and naming structure.
Additional context
Clear documentation from Twig: https://symfony.com/doc/current/templates.html#reusing-template-contents
The text was updated successfully, but these errors were encountered: