line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=head1 NAME |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
HTML::WebMake - a simple web site management system |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 SYNOPSIS |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
my $f = new HTML::WebMake::Main (); |
8
|
|
|
|
|
|
|
$f->readfile ($filename); |
9
|
|
|
|
|
|
|
$f->make(); |
10
|
|
|
|
|
|
|
my $failures = $f->finish(); |
11
|
|
|
|
|
|
|
exit $failures; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 DESCRIPTION |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
WebMake is a simple web site management system, allowing an entire site to be |
16
|
|
|
|
|
|
|
created from a set of text and markup files and one WebMake file. |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
It requires no dynamic scripting capabilities on the server; WebMake sites can |
19
|
|
|
|
|
|
|
be deployed to a plain old FTP site without any problems. |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
It allows the separation of responsibilities between the content editors, the |
22
|
|
|
|
|
|
|
HTML page designers, and the site architect; only the site architect needs to |
23
|
|
|
|
|
|
|
edit the WebMake file itself, or know perl or WebMake code. |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
A multi-level website can be generated entirely from 1 or more WebMake files |
26
|
|
|
|
|
|
|
containing content, links to content files, perl code (if needed), and output |
27
|
|
|
|
|
|
|
instructions. Since the file-to-page mapping no longer applies, and since |
28
|
|
|
|
|
|
|
elements of pages can be loaded from different files, this means that standard |
29
|
|
|
|
|
|
|
file access permissions can be used to restrict editing by role. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Since WebMake is written in perl, it is not limited to command-line invocation; |
32
|
|
|
|
|
|
|
using the C module directly allows WebMake to be run from |
33
|
|
|
|
|
|
|
other Perl scripts, or even mod_perl (WebMake uses C |
34
|
|
|
|
|
|
|
and temporary globals are used only where strictly necessary). |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=cut |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
package HTML::WebMake; |
39
|
|
|
|
|
|
|
|
40
|
1
|
|
|
|
|
115
|
use vars qw{ |
41
|
|
|
|
|
|
|
@ISA $VERSION |
42
|
1
|
|
|
1
|
|
7
|
}; |
|
1
|
|
|
|
|
2
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
@ISA = qw(); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
$VERSION = "2.2"; |
47
|
0
|
|
|
0
|
0
|
|
sub Version { $VERSION; } |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
########################################################################### |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__END__ |