summaryrefslogtreecommitdiffstats
path: root/staticweb/index.pl
blob: ea48b8741a250a90fa2b72aedc1e26aad6c4a11e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/perl
# $Id: index.pl,v 1.1 2003/07/03 12:39:05 in2 Exp $
use lib qw/./;
use LocalVars;
use CGI qw/:standard/;
use strict;
use Template;

sub main
{
    my($tmpl, %rh);

    charset('');
    print header();

    foreach( </home/web/man/data/*.db> ){
    s/.*\///;
    s/\.db//;
    push @{$rh{dat}}, {brdname => $_};
    }
    $tmpl = Template->new({INCLUDE_PATH => '.',
               ABSOLUTE => 0,
               RELATIVE => 0,
               RECURSION => 0,
               EVAL_PERL => 0,
               COMPILE_EXT => '.tmpl',
               COMPILE_DIR => $MANCACHE});
    $tmpl->process('index.html', \%rh);
}

main();
1;