62 |
print OUT $webpac->output( |
print OUT $webpac->output( |
63 |
template => 'html.tt', |
template => 'html.tt', |
64 |
data => \@ds, |
data => \@ds, |
65 |
|
headline => $webpac->{'headline'}, |
66 |
); |
); |
67 |
close(OUT); |
close(OUT); |
68 |
} else { |
} else { |
69 |
print $webpac->output( |
print $webpac->output( |
70 |
template => 'text.tt', |
template => 'text.tt', |
71 |
data => \@ds, |
data => \@ds, |
72 |
|
headline => $webpac->{'headline'}, |
73 |
); |
); |
74 |
} |
} |
75 |
|
|
76 |
my $headline; |
my $headline = $webpac->{'headline'}; |
|
foreach my $ds (@ds) { |
|
|
if ($ds->{'tag'} eq 'headline') { |
|
|
$headline = join(" ",@{$ds->{'display'}}); |
|
|
last; |
|
|
} |
|
|
} |
|
77 |
|
|
78 |
my $f = $filename; |
my $f = $filename; |
79 |
$f =~ s!out/!!; |
$f =~ s!out/!!; |