205 |
my $fatal = $args->{fatal}; |
my $fatal = $args->{fatal}; |
206 |
die "no templates" unless defined( $args->{templates} ); |
die "no templates" unless defined( $args->{templates} ); |
207 |
my @templates; |
my @templates; |
208 |
if ( ref( $args->{template} ) eq 'ARRAY' ) { |
warn dump( $args->{templates} ); |
209 |
|
if ( ref( $args->{templates} ) eq 'ARRAY' ) { |
210 |
@templates = @{ $args->{templates} }; |
@templates = @{ $args->{templates} }; |
211 |
} else { |
} else { |
212 |
@templates = ( $args->{templates} ); |
@templates = ( $args->{templates} ); |