Add a bunch of Rael plugins.
[matthijs/upstream/blosxom-plugins.git] / general / config
1 # Blosxom Plugin: config
2 # Author(s): Rael Dornfest <rael@oreilly.com> 
3 # Version: 2003-07-16
4 # Documentation: See the bottom of this file or type: perldoc config
5
6 package config;
7
8 # --- Configurable variables -----
9
10 # --------------------------------
11
12 sub start {
13   1;
14 }
15
16 sub head {
17
18   my $path = $blosxom::path_info;
19   $path &&= "/$path";
20
21   for (;;) {
22     do {
23       $blosxom::others{"$blosxom::datadir$path/config.$blosxom::flavour"} and eval { require "$blosxom::datadir$path/config.$blosxom::flavour" } and ( $@ ? warn $@ : last );
24       $blosxom::others{"$blosxom::datadir$path/config"} and eval { require "$blosxom::datadir$path/config" } and ( $@ ? warn $@ : last );
25     } while ($path =~ s/(\/*[^\/]*)$// and $1);
26     last;
27   }
28
29
30 }
31   
32 1;
33
34 __END__
35
36 =head1 NAME
37
38 Blosxom Plug-in: config
39
40 =head1 SYNOPSIS
41
42 Override Blosxom's inline configuration settings on a per-directory, per-flavour, and per-directory-per-flavour basis.
43
44 =head1 VERSION
45
46 2003-07-16
47
48 =head1 AUTHOR
49
50 Rael Dornfest  <rael@oreilly.com>, http://www.raelity.org/
51
52 =head1 SEE ALSO
53
54 Blosxom Home/Docs/Licensing: http://www.raelity.org/apps/blosxom/
55
56 Blosxom Plugin Docs: http://www.raelity.org/apps/blosxom/plugin.shtml
57
58 =head1 BUGS
59
60 Address bug reports and comments to the Blosxom mailing list 
61 [http://www.yahoogroups.com/group/blosxom].
62
63 =head1 LICENSE
64
65 Blosxom and this Blosxom Plug-in
66 Copyright 2003, Rael Dornfest 
67
68 Permission is hereby granted, free of charge, to any person obtaining a
69 copy of this software and associated documentation files (the "Software"),
70 to deal in the Software without restriction, including without limitation
71 the rights to use, copy, modify, merge, publish, distribute, sublicense,
72 and/or sell copies of the Software, and to permit persons to whom the
73 Software is furnished to do so, subject to the following conditions:
74
75 The above copyright notice and this permission notice shall be included
76 in all copies or substantial portions of the Software.
77
78 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
79 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
80 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
81 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
82 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
83 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
84 OTHER DEALINGS IN THE SOFTWARE.