X-Git-Url: http://git.jankratochvil.net/?p=www.jankratochvil.net.git;a=blobdiff_plain;f=project%2Fcaptive%2FResources.pm;fp=project%2Fcaptive%2FResources.html.pl;h=1af3c8d797e78ce9adb5929f863513730f2c9dc4;hp=eb6aacb9d8223cead53a04e9ba6099ea2e0bbfc0;hb=19c5ad8e26ac320516b8427c416a9195ce4fea48;hpb=4df4c5409020cd58d7dd7f98a88653c96e860dfb diff --git a/project/captive/Resources.html.pl b/project/captive/Resources.pm similarity index 90% rename from project/captive/Resources.html.pl rename to project/captive/Resources.pm index eb6aacb..1af3c8d 100755 --- a/project/captive/Resources.html.pl +++ b/project/captive/Resources.pm @@ -1,8 +1,6 @@ -#! /usr/bin/perl -# # $Id$ # Captive project Resources page Perl template. -# Copyright (C) 2003 Jan Kratochvil +# Copyright (C) 2003-2005 Jan Kratochvil # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,18 +23,18 @@ our $CVS_ID=q$Id$; use strict; use warnings; -BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,)[0]]}; eval "use lib '$top_dir'"; close F; } use My::Web; -Wrequire 'My::Project'; +Wrequire 'project::Lib'; +sub handler +{ My::Web->init( - "__PACKAGE__"=>__PACKAGE__, "title"=>'Captive NTFS Internet Resources', - "WebConfig::heading_novskip"=>1, + "heading_novskip"=>1, ); My::Web->heading(); -print My::Project->section("captive"); +print(project::Lib->section("captive")); print "

Captive NTFS Internet Resources

\n"; @@ -76,3 +74,5 @@ print "\n"; My::Web->footer(); +} +1;