modperl bootstrap
[www.jankratochvil.net.git] / CV.html.pl
similarity index 73%
rename from project/Islet/index.html.pl
rename to CV.html.pl
index 5ef85ab..c512858 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/perl
 # 
 # $Id$
-# Main page of 'My::Project::icp'
+# Main page Perl template.
 # Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
 # 
 # This program is free software; you can redistribute it and/or modify
@@ -18,6 +18,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 
+package Index;
 require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway
 use vars qw($VERSION $CVS_ID);
 $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
@@ -25,20 +26,21 @@ $CVS_ID=q$Id$;
 use strict;
 use warnings;
 
+BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
 use My::Web;
-use project::icp::ListItem;
+require 'CGI';
+require 'My::Project';
 
 
-My::Web->init_project(
-               "ListItem"=>\%My::Project::icp::ListItem,
+my $W=My::Web->init(
+               "__PACKAGE__"=>__PACKAGE__,
+               "title"=>'CV - Jan Kratochvil',
+               "footer_ids"=>0,
                );
+My::Web->heading();
 
-print <<'HERE';
-<iframe src="Islet/" width="90%" height="500" />
-<a href="Islet/">Program on-line</a>.
-</iframe>
-HERE
 
-print '<table border="0"><tr><td align="center">'.My::Web::img("Islet.png","Applet demo screen").'</td></tr></table>'."\n";
+print "<h1>Nothing to see here, move along.</h1>\n";
+
 
 My::Web->footer();