Hi,

in an older version of the Template Toolkit (we just updated our server 
to 2.19), using <% if loop.last %> threw an error that could be solved 
through a hack in Iterator.pm, sub AUTOLOAD:

$item = 'LAST' if $item eq 'loop_final';

This hack no longer works, and <%if loop.last %> still throws an error:

file error - parse error - pub_author.tmpl line 3: unexpected token 
(LAST) [% if not loop.last %].

Any ideas how to remedy this?

Thanks,

Birgit

 

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to