durusmail: quixote-users: 'return' in templates
'return' in templates
2002-05-02
'return' in templates
Neil Schemenauer
2002-05-02
On Thu, May 02, 2002 at 03:32:38PM -0600, Jonathan Corbet wrote:
> Now, the PTL document says "Inside templates, you can use all of Python's
> control-flow statements."  But this doesn't quite seem to be the case with
> return.

That would be a bug.  I guess the fix is to change to PTL compiler to
emit "return str(__output)".

  Neil


reply