There are two types of frameworks push and pull.
In a push framework (like web2py, Django, Rails) the URL is mapped
into a function, which returns data (in the form of a dictionary) and
the data is rendered by one view.
In a pull framework (like Struts and JBoss) the URL is mapped into a
view which calls one or more controller functions.
From your question I assume you have a pull framework in mind. You can
mimic a pull framework in web2py in multiple ways. One way is via ajax
requests:
#controller default.py
def index(): return dict()
def f1(): return response.render('partial_view1.html',dict())
def f2(): return response.render('partial_view2.html',dict())
#view default/index.html
{{extend 'alyout.html'}}
<div id="f1"></div>
<div id="f2"></div>
<script>
jQuery(document).ready(funciton(){
ajax('{{=URL(f='f1')}}",[],'f1');
ajax('{{=URL(f='f2')}}",[],'f2');
})};
</script>
#view partial_view1.html
Hello
#view partial_view2.html
World
Hope it makes sense.
Massimo