line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bigtop::Backend::HttpdConf; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use Bigtop::Keywords; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
131
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
BEGIN { |
6
|
1
|
|
|
1
|
|
7
|
Bigtop::Parser->add_valid_keywords( |
7
|
|
|
|
|
|
|
Bigtop::Keywords->get_docs_for( 'app', 'location' ) |
8
|
|
|
|
|
|
|
); |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
|
|
5
|
Bigtop::Parser->add_valid_keywords( |
11
|
|
|
|
|
|
|
Bigtop::Keywords->get_docs_for( |
12
|
|
|
|
|
|
|
'controller', 'location', 'rel_location' |
13
|
|
|
|
|
|
|
) |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
4
|
Bigtop::Parser->add_valid_keywords( |
17
|
|
|
|
|
|
|
Bigtop::Keywords->get_docs_for( |
18
|
|
|
|
|
|
|
'app_literal', 'HttpdConf', 'Location', 'PerlTop', 'PerlBlock', |
19
|
|
|
|
|
|
|
) |
20
|
|
|
|
|
|
|
); |
21
|
1
|
|
|
|
|
4
|
Bigtop::Parser->add_valid_keywords( |
22
|
|
|
|
|
|
|
Bigtop::Keywords->get_docs_for( |
23
|
|
|
|
|
|
|
'controller_literal', 'Location' |
24
|
|
|
|
|
|
|
) |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Bigtop::Backend::HttpdConf - defines the legal keywords for httpd conf backends |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SYNOPYSIS |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
If you are making an httpd conf generating backend: |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
use Bigtop::Backend::HttpdConf |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
This specifies the keywords for conf generating backends. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
If you need to add a generally useful keyword, add it here |
43
|
|
|
|
|
|
|
(and send in a patch). If you need a backend specific keyword, register |
44
|
|
|
|
|
|
|
it within your backend module. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 DESCRIPTION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
If you are using a Bigtop backend in the HttpdConf family, you should |
49
|
|
|
|
|
|
|
read this document to find out what the valid keywords are and what |
50
|
|
|
|
|
|
|
effect they have. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
If you are writing a Bigtop::HttpdConf:: module, you should use this |
53
|
|
|
|
|
|
|
module. That will register the keywords your module will need. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 BASIC STRUCTURE |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
A bigtop file looks like this: |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
config { |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
app name { |
62
|
|
|
|
|
|
|
controller name { |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 KEYWORDS |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Inside the app braces, you can include the location keyword. Its value will |
69
|
|
|
|
|
|
|
be the base Apache Location for the application. The default is '/'. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Inside the controller braces, you may include a location or a |
72
|
|
|
|
|
|
|
rel_location keyword. Use location to specify the absolute Apache Location |
73
|
|
|
|
|
|
|
or rel_location to specify the path relative to the app level location. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 AUTHOR |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Phil Crow |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 COPYRIGHT and LICENSE |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Copyright (C) 2005 by Phil Crow |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
84
|
|
|
|
|
|
|
it under the same terms as Perl itself, either Perl version 5.8.6 or, |
85
|
|
|
|
|
|
|
at your option, any later version of Perl 5 you may have available. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=cut |