blaix / woma

A python web development framework
MIT License
5 stars 0 forks source link

Code generators #22

Open blaix opened 8 years ago

blaix commented 8 years ago

Given a module name, generate recommended, bootstrapped submodules. For example:

$ woma generate articles

might generate:

articles/
  actions.py
  controllers.py
  tests/
    test_actions.py
    test_controllers.py

containing basic "hello world"-type functionality, and comments to explain the purpose of each component, and how to wire it into the rest of your application (via the router).

Later, this can be expanded to include options for functionality that gets added to woma, like responders, renderers, etc.

blaix commented 8 years ago

could also include a command to start a new project:

$ woma start blog

might generate:

blog/
  router.py
  wsgi.py
  tests/
    test_requests.py
lijiansong commented 8 years ago

to make it,you must to do lots of packaging of the systematic modules.for example,you want to start blog, you need to package router & wsgi, or you can design some config files or templates files