rSimulate / Cosmosium

:earth_americas: js game engine for space-based games
Other
23 stars 7 forks source link

Splitting the main app and routing into Model View Controller method #57

Open iontom opened 10 years ago

iontom commented 10 years ago

https://github.com/srackham/bottle-mongodb-example

Similar to that example, we already have the same design but it's almost all contained within app.py

Having separate files for the controller(routing) vs the Model (globals), and view (templating and functions that call the templating - ie pagemaker)

Not sure if this improvement is needed any time soon. But if team expands it may help make the code more organized

7yl4r commented 10 years ago

The trouble I had in splitting methods out of app.py is access to the "global" variables like GAMES. I know there is a way around this though.

BrianErikson commented 9 years ago

A significant portion of app.py was gutted with latest merge. Consider revisiting this issue to see if it is still needed.