r1221@llin: dpavlin | 2007-05-20 22:43:38 +0200
[webpac2] / lib / WebPAC / Validate.pm
index 5d59013..f356046 100644 (file)
@@ -405,6 +405,35 @@ sub report {
 
 }
 
+=head2 delimiters_templates
+
+
+=cut
+
+sub delimiters_templates {
+       my $self = shift;
+
+       my $t = $self->{_delimiters_templates};
+
+       my $log = $self->_get_logger;
+
+       unless ($t) {
+               $log->warn("called without delimiters");
+               return;
+       }
+
+       my $out;
+
+       foreach my $f (sort { $a <=> $b } keys %$t) {
+               $out .= "$f\n";
+               foreach my $sft (sort { $a cmp $b } keys %{ $t->{$f} }) {
+                       $out .= "\t" . $t->{$f}->{$sft} . "\t$sft\n";
+               }
+       }
+
+       return $out;
+}
+
 =head1 AUTHOR
 
 Dobrica Pavlinusic, C<< <dpavlin@rot13.org> >>