In fact this
{{if {{=request.function}} == index:}}
is wrong because web2py would look for the first {{ and the first }}
and try interpret the code in between as python. By
"if {{=request.function" is not valid python.
You want:
{{if request.function == 'index':}}
On Oct 10, 4:28 pm, Anthony <[email protected]> wrote:
> > {{if {{=request.function}} == index:}}
>
> Yes, once you're inside a {{}}, you can write any Python and refer to any
> global (or local) variables -- so no need to nest another {{=}} in there.