… | |
… | |
10 | |
10 | |
11 | my $parser = new Pod::POM meta => 1; |
11 | my $parser = new Pod::POM meta => 1; |
12 | |
12 | |
13 | my ($pom, $html); |
13 | my ($pom, $html); |
14 | |
14 | |
15 | $pom = $parser->parse ("src/news-archive.pod") |
15 | $pom = $parser->parse ("src/news.pod") |
16 | or die $parser->error; |
16 | or die $parser->error; |
17 | $html = $pom->present ("PodHTML"); |
17 | $html = $pom->present ("PodHTML"); |
18 | $html =~ s/\[/</g; |
18 | $html =~ s/\[/</g; |
19 | $html =~ s/\]/>/g; |
19 | $html =~ s/\]/>/g; |
20 | open FH, ">", "src/news-archive.html"; |
|
|
21 | print FH "News Archive\n\n"; |
|
|
22 | print FH $html; |
|
|
23 | close FH; |
|
|
24 | |
|
|
25 | $pom = $parser->parse ("src/news.pod") |
|
|
26 | or die $parser->error; |
|
|
27 | $html = $pom->present ("PodHTML"); |
|
|
28 | open FH, ">", "html/news.html"; |
20 | open FH, ">", "src/news.html"; |
|
|
21 | print FH "News\n\n"; |
29 | print FH $html; |
22 | print FH $html; |
30 | close FH; |
23 | close FH; |
31 | |
24 | |
32 | %PodRSS::metadata = %{ $pom->metadata }; |
25 | %PodRSS::metadata = %{ $pom->metadata }; |
33 | $html = $pom->present ("PodRSS"); |
26 | $html = $pom->present ("PodRSS"); |
… | |
… | |
122 | |
115 | |
123 | use strict; |
116 | use strict; |
124 | use warnings; |
117 | use warnings; |
125 | use utf8; |
118 | use utf8; |
126 | |
119 | |
127 | my $rcsid = '$Id: generate,v 1.18 2007/09/19 14:30:53 pippijn Exp $'; |
120 | my $rcsid = '$Id: generate,v 1.19 2007/10/14 14:24:33 root Exp $'; |
128 | |
121 | |
129 | use base "Pod::POM::View"; |
122 | use base "Pod::POM::View"; |
130 | |
123 | |
131 | our $subdir; |
124 | our $subdir; |
132 | our $dir; |
125 | our $dir; |