Try using http://www.web2py.com/book/default/chapter/13#Components-and-Plugins
I think it should be what you are looking for. On Dec 29, 3:05 am, ron_m <ron.mco...@gmail.com> wrote: > Its ugly but you must have a finite and small number of nextStep targets > > {{if nextStep == 'step1':}} > {{include 'step1.html'}} > {{elif nextStep == 'step2':}} > {{include 'step2.html'}} > ...... > will get you going but introduces a maintenance issue if you add a step > later that ou have to remember to come back to here and fix. > > The problem is the include passes through the template generation and that > pulls that body of code inline during the template substitution phase before > any code executes. I don't think it is possible to have a variable inside > the include statement. I would like to be proven wrong. :-) > > Ron