[Templates] unintended recursion

2005-05-13 Thread Steve Kelem
I'm just getting started with the template-toolkit. I have version 2.14 on cygwin. I'm trying to run the library template example from the book, pages 406-414. I carefully cut-and-pasted the contents of each file from the downloaded chapter 11 code from OReilly, and checked it against the book

Re: [Templates] Confusing Apache::Template error: reason: file error - error: not found

2005-05-13 Thread Simon Wistow
On Fri, May 13, 2005 at 02:45:29PM +0100, Paul Sharpe said: > Where's that extra '\n' coming from? Apache escapes its log messages unless you tell it not to as of 1.3.25 http://securitytracker.com/alerts/2003/Aug/1007557.html ___ templates mailing li

Re: [Templates] Confusing Apache::Template error: reason: file error - error: not found

2005-05-13 Thread Paul Sharpe
Andy Wardley wrote: Paul Sharpe wrote: [Fri May 13 10:48:58 2005] [error] access to .../foo.tt2 failed for 127.0.0.1, reason: file error - error: not found ... but that one doesn't. It looks like you have defined an ERROR handling template (called 'error'?) which is being invoked to report the err

Re: [Templates] Confusing Apache::Template error: reason: file error - error: not found

2005-05-13 Thread Andy Wardley
Paul Sharpe wrote: > [Fri May 13 10:48:58 2005] [error] access to .../foo.tt2 failed for > 127.0.0.1, reason: file error - error: not found > > ... but that one doesn't. It looks like you have defined an ERROR handling template (called 'error'?) which is being invoked to report the error in the f

[Templates] Confusing Apache::Template error: reason: file error - error: not found

2005-05-13 Thread Paul Sharpe
What's going on here? $ cat foo.tt2 [% foo = [0,0] %] foo.0 = [% foo.0 %] foo.1 = [% foo.1 %] [% foo.0 / foo.1 %] $ tpage foo.tt2 undef error - Illegal division by zero at ./foo.tt2 line 4. OK, that error makes sense... $ GET http://localhost/foo/ 500 Internal Server Error ... # tail /var/log/apa