Last night I spent some time knocking my head against a ttree issue 
until I looked at the ttree code.  When I read the docs, it seemed to me 
that the handling of copy, ignore, and accept file patterns were the 
same.  The docs might be misleading, but the code doesn't lie:

     # check against ignore list
     foreach $check (@$ignore) {
        if ($path =~ /$check/) {

     # check against copy list
     foreach $check (@$copy) {
        if ($base =~ /$check/) {

     # check against acceptance list
     if (@$accept) {
        unless (grep { $base =~ /$_/ } @$accept) {

That is, ignore matches against the full filename including the path, 
but check and accept are just the base file name.

I can deal with it although it is unfortunate, but it might be worth 
updating the docs to note the difference.

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

Reply via email to