feat: Loops for partial bricks
- Dominant language
- Dart
- Stars
- 1.1k
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
**Description**
I have a `feature_template` brick which contains my init module structure
I need to create a `main_template` brick which will contain all my project structure
Also it will have a **Features** folder that will contain all my features inside the project
That's why I need to pass a list of features name to the `main_template` that can be looped on them and call `feature_template` for each feature name inside this list
**Requirements**
- [ ] loops for partial bricks
**Additional Context**
vars=> feature_name: String
feature_template
|__data
|__domain
|__presentation
vars=> features_names: List
main_template
|__core
|__featues {{features_names.foreach(feature_template)}}
|__main.dart
So if I passed [Home, Auth, Payment] to the `main_template` then I should have something like:
lib
|__core
|__featues
| |__Home
| | |__data
| | |__domain
| | |__presentation
| |
| |__Auth
| | |__data
| | |__domain
| | |__presentation
| |
| |__Payment
| | |__data
| | |__domain
| | |__presentation
| |
|__main.dart
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.