Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 0.2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Currently when I configure the mvc group, I need to provide the name for each of our model, view, controller for every MVC group.
FilePanel {
model = 'FilePanelModel'
view = 'FilePaneleView'
controller = 'FilePanelController'
}
For example above, it would be better if I can provide just an empty declaration to tell the FilePanel group to look for 'FilePanelModel', 'FilePanelView', 'FilePanelController'
FilePanel {}
If possible I would to see something like component-scanner in the future. The scanner will look for MVC components. Anything has suffix of Model/View/Controller and shares the same name (name without suffix) will be added as an MVC group by the scanner.
Do you configure the group manually or do you do it via 'griffon create-mvc'?
Though I recognize there may be some repetition when you follow the conventions, i.e FilePanel group has FilePanelModel , filePanelView and FilePanelController; it is also possible for the FilePanel group to contain FilePanelActions, FilePanelDialogs and many more. It is also possible to not have a *Model, or *Controller; or even use an mvc member from another group; even reusable an existing instance of a member.
In other words, the mvc group configuration is quite flexible and you only need to touch it when you deviate from the convention. Your case sticks to the convention. Perhaps I'm missing something here.