>
> I also noted  best performance directly rendering the templates and 
>> caching views where it can be cached.
>>
>> just replacing
>>
>> return dict()
>>
>> with
>>
>> return response.render(filename, context)
>>
> Is there documentation about this?  How do you code the view differently 
> in such a case?
>

There's an example at the end of the section on caching: 
http://web2py.com/books/default/chapter/29/4#cache. response.render() is 
briefly mentioned 
here: http://web2py.com/books/default/chapter/29/4#response. Note, if you 
leave out the filename, it will assume the current response.view. No 
changes are necessary in the view code.

Anthony 

Reply via email to