edgebox-iot / edgebox-iot/api

[DEV] Create partial twig templates for reusable parts

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
SCSS
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

**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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.