I had sort of a dumb thought after seeing another framework (can't remember 
the name): is it possible or desirable to combine controller and view code 
in one file? Since controller and view files are almost always used 
together, I wondered if it might be easier just to code them in same file 
(while still separating the code).
For example:

== default.py ==
def article(): return dict()

== default/article.html ==
{{
    row = db.article(request.args(0))
}}

{{extend 'layout.html'}}

<h1>row.title</h1>
<p>row.body</p>

Reply via email to