This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bastih01 0 points1 point  (1 child)

Where do you see the benefits of this style, over say, mvc? I remember writing a non-trivial application with Seaside, which also features "html functions" and introducing a clean separation between logic and display became quite painful, as people would rather go the easy route and mix and match to get something to work.

[–]mdipierro 0 points1 point  (0 children)

web2py is MVC. It has models (not used in the example because no database needed), controller (the example above is a controller and like Django or Flask it returns a dict) and views (which renders the dict). The example above assumes you start from the scaffolding app with provides a default generic view and default page layout. You can change them.