modperl bootstrap
[www.jankratochvil.net.git] / project / captive / Preview.html.pl
similarity index 73%
rename from project/pipebuf/index.html.pl
rename to project/captive/Preview.html.pl
index c06b103..a0856b6 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/perl
 # 
 # $Id$
-# Main page of 'My::Project::pipebuf'
+# Captive project Preview 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 project::captive::Preview;
 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,12 +26,20 @@ $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::pipebuf::ListItem;
 
 
-My::Web->init_project(
-               "ListItem"=>\%My::Project::pipebuf::ListItem,
+My::Web->init(
+               "__PACKAGE__"=>__PACKAGE__,
+               "title"=>'Captive NTFS Technology Preview',
                );
+My::Web->heading();
+
+print "<h1>Captive NTFS Technology Preview</h1>\n";
+
+print img("doc/dia/parent-connector","Parent connector");
+
+
 
 My::Web->footer();