I think this behavior I've just found is worth sharing.

Templates don't honor the if statement that conditionally "try" to include
or exclude template blocks.
I've just detected this (in 1.96.4 I think) and upgrade to 1.97.1 and the
issue/behavior remains.

{{rsd=None}}
{{if rsd!=None:}}
   {{block right_sidebar}} {{=rsd==None}} {{=repr(rsd)}} {{end}}
{{pass}}

The solution is to put the condition *inside the template block* (tested in
1.97.1)
{{rsd=None}}
{{block right_sidebar}}
    {{if rsd!=None:}} {{=rsd==None}} {{=repr(rsd)}} {{pass}}
{{end}}

Miguel

Reply via email to