> b) That the Web2Py developer can for any given function in a
> controller specify a custom html rendering. If not so specified then
> the default <def>.html be utilized. Maybe like
>
> return dict(data=data, html='custom.html')
>

this can be achieved by

response.view='custom.html'
return dict(data=data)

or

return response.render('custom.html',data=data)

the second i better because it is cachable.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to