I have a *lot* of MACRO definitions. How could I go about finding out
which of them are never called?
To make things potentially easier I do have a test suite that exercises the
entire site (amongst other things it validates that every page is valid
XHTML), so every MACRO that is called should be hit during the running of
this.
I figure there should be two places I can hook in and build up lists:
once when the MACROs are set-up, and again when a MACRO is called. Then
I should be able to compare these lists.
I can seemingly use Hook::LexWrap to get the definitions:
wrap *Template::Directive::macro, pre => sub { push @def, $_[1] };
But I can't see how to do the equivalent for which ones are called.
Any suggestions?
Thanks,
Tony
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates