Initial mod_perl-2.0 port.
[www.jankratochvil.net.git] / project / wllib / Index.pm
old mode 100755 (executable)
new mode 100644 (file)
similarity index 89%
rename from project/wllib/ListItem.pm
rename to project/wllib/Index.pm
index c607d3c..8621a5e
@@ -1,7 +1,5 @@
-#! /usr/bin/perl
-# 
 # $Id$
-# Definition of 'My::Project::wllib' for list.cgi.pl
+# Main page of 'My::Project::wllib'
 # Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
 # 
 # This program is free software; you can redistribute it and/or modify
@@ -18,7 +16,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 
-package project::wllib::ListItem;
+package project::wllib::Index;
 require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway
 our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
 our $CVS_ID=q$Id$;
@@ -26,6 +24,7 @@ use strict;
 use warnings;
 
 use My::Web;
+Wuse 'project::Lib';
 
 
 our @ListItem=(
@@ -37,7 +36,7 @@ our @ListItem=(
                "license"=>"PD",
                "maintenance"=>"obsolete-Any of the supported backends are no longer being used.",
                "language"=>"C",
-               "description"=><<"HERE",
+               "description"=>sub { return <<"HERE"; },
 <p>This library should make you generically use line drawing on the following platforms:
 @{[ a_href 'http://www.x.org/','UNIX/X Windows System X11 (libX11)' ]},
 @{[ a_href 'http://www.svgalib.org/','UNIX/SVGAlib' ]} and
@@ -45,4 +44,11 @@ our @ListItem=(
 HERE
                );
 
+sub handler
+{
+project::Lib->init();
+
+
+My::Web->footer();
+}
 1;