[Catalyst] Patch for Template Toolkit solves "stuck" TT errors

Bill Moseley moseley at hank.org
Tue Aug 1 20:47:18 CEST 2006


Andy Wardley provided a patch today for Template Toolkit for a problem
I've been having.  If you edit templates while your application is
running then it's probably of interest to you.

The problem is when a nested block has a syntax error and then
correcting that error leaves TT in an unstable state causing a new
error to be reported.  At that point the only solution is to restart the
Catalyst application (or re-create a new template object).

This is important for my application where it's common for templates
to get edited while the application is running.  So, obviously, it
is a problem if a simple typo in a template could put the
application into an error state requiring a restart of the
application.

It's a simple fix:

http://lists.template-toolkit.org/pipermail/templates/2006-August/008838.html

Here's the thread that (kind of) describes the problem:

http://lists.template-toolkit.org/pipermail/templates/2006-July/thread.html#8815


-- 
Bill Moseley
moseley at hank.org




More information about the Catalyst mailing list