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

Reply via email to