Closed KaungZawHtet closed 4 months ago
Gii's code generation
@KaungZawHtet May you elaborate more about it? We have discussed internally if we should support a more advanced layout system. But voted not to because a) the core devs prefer client side rendering b) don't want to introduce new attack surfaces.
Drogon does support CSP with syntax extension for VSCode. A quick layout and template system. It works more or less like PHP. I use it to quickly spin up pages:
Ex:
Yes, I mean sort of that CSP feature with more complete built-in preparation for RAD.
When I start run a framework (In here, I use Yii2 but most other web framework do the same ), I start seeing this welcome page:
What is this mean? This mean:
My suggestion is to peek into the Django, the one loved by many small businesses n freelancers because most of web frameworks for RAD work under the same ideology.
Thanks so much for the valuable input. I think these are great ideas to position Drogon more into the front of frontend developers. As @marty1885 already mentioned, some parts from your initial message are already possible with Drogon and its CSP templating system. All other things are slightly out of scope for the main project, and there is a general consensus that they should be part of a plugin / extensions tightly integrated into the core.
@KaungZawHtet Do you think you could make a PR for this?
Yes, these RAD things shouldn't be in the core but as a plugin or a template or may be a drogon_cl option. For clean n well designed PR, I think I need more time to do it.
We can find rapid web application development is an advantage in php and javascript world. We wish to find it on drogon also and then small business can more easily enjoy this.
There is some code generation things we wish for RAD ideology:
drogon_ctl create rad_project your_project_name
(just example)