Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iontom opened this issue May 2, 2014 · 2 comments
Open

Comments

@iontom
Copy link
Member

iontom commented May 2, 2014

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
Copy link
Contributor

7yl4r commented May 2, 2014

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants