Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEV] Create partial twig templates for reusable parts #16

Open
paulotruta opened this issue Jun 2, 2021 · 0 comments
Open

[DEV] Create partial twig templates for reusable parts #16

paulotruta opened this issue Jun 2, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@paulotruta
Copy link
Member

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

@paulotruta paulotruta added enhancement New feature or request good first issue Good for newcomers labels Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant