tagging: Allow using titles in for related stories.
[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 This plugin is now maintained by the Blosxom Sourceforge Team,
53 <blosxom-devel@lists.sourceforge.net>.
54
55 =head1 SEE ALSO
56
57 Blosxom Home/Docs/Licensing: http://blosxom.sourceforge.net/
58
59 Blosxom Plugin Docs: http://blosxom.sourceforge.net/documentation/users/plugins.html
60
61 =head1 BUGS
62
63 None known; please send bug reports and feedback to the Blosxom
64 development mailing list <blosxom-devel@lists.sourceforge.net>.
65
66 =head1 LICENSE
67
68 Blosxom and this Blosxom Plug-in
69 Copyright 2003, Rael Dornfest 
70
71 Permission is hereby granted, free of charge, to any person obtaining a
72 copy of this software and associated documentation files (the "Software"),
73 to deal in the Software without restriction, including without limitation
74 the rights to use, copy, modify, merge, publish, distribute, sublicense,
75 and/or sell copies of the Software, and to permit persons to whom the
76 Software is furnished to do so, subject to the following conditions:
77
78 The above copyright notice and this permission notice shall be included
79 in all copies or substantial portions of the Software.
80
81 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
82 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
83 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
84 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
85 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
86 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
87 OTHER DEALINGS IN THE SOFTWARE.