> The only problem with this would be that we might break things if
> syntax errors are moved from 'file'. I'm pretty sure I have in the
> past coded around this and switching from file to syntax would break a
> page or two I have.

Yeah, I wasn't expecting it to happen for TT2 - more of a request for
TT3 really
> 
> Of course if it could be left in the 'file' one as well, that'd get
> around that problem, but it would certainly cause confusion, since
> users would have to be sure to catch 'syntax' before 'file' if they
> are checking for file-only problems.

Although, it could be implemented in such as way that two new error
types eg 'file_missing' and 'parse_error' could both inherit from
'file', which would let the old version continue working.

That said, it'd probably change the error message and thus break the
regexes anyway, so if it were to be implemented for TT2, it'd have to go
through a deprecation cycle i suppose

clint



_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to