On Dec 21, 2010, at 3:31 AM, Sahil Arora wrote: > > no , i know this. > But i want to use a function say view( ) as well as index( ) in index.html. > I want to use the output of view( ) in index.html
Martin has the right idea, I think. Factor out the common logic and call it from view() and index(). > > On 12/21/10, Martín Mulone <[email protected]> wrote: >> If you want to use the same view/default/index.html in other controller? >> >> example: in controller/default.py >> >> def another(): >> response.view='default/index.html' >> >> 2010/12/21 Sahil Arora <[email protected]>: >>> I want to use a function in index.html other than index(). Where I >>> should define ?

