[RFC/PATCH 3/4] gitweb: Create Gitweb::HTML module
- From
Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
- Date
- Jun 7, 2010, 20:50 UTC
- Message-ID
- <1275943844-24991-3-git-send-email-pavan.sss1991@gmail.com>
- In-Reply-To
- <1275943844-24991-1-git-send-email-pavan.sss1991@gmail.com>
Create Gitweb::HTML module in 'gitweb/lib/Gitweb/HTML.pm' to import all the Gitweb::HTML::* modules into it.
Update gitweb/Makefile to install Gitweb::HTML alongside gitweb.
Signed-off-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com> --- gitweb/Makefile | 1 + gitweb/gitweb.perl | 2 +- gitweb/lib/Gitweb/HTML.pm | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletions(-) create mode 100644 gitweb/lib/Gitweb/HTML.pm
diff --git a/gitweb/Makefile b/gitweb/Makefile index 28f0858..5e44ace 100644 --- a/gitweb/Makefile +++ b/gitweb/Makefile @@ -116,6 +116,7 @@ GITWEB_LIB_GITWEB += lib/Gitweb/Config.pm GITWEB_LIB_GITWEB += lib/Gitweb/Request.pm GITWEB_LIB_GITWEB += lib/Gitweb/Escape.pm GITWEB_LIB_GITWEB += lib/Gitweb/Git.pm +GITWEB_LIB_GITWEB += lib/Gitweb/HTML.pm # Files: gitweb/lib/Gitweb/HTML GITWEB_LIB_GITWEB_HTML += lib/Gitweb/HTML/Link.pm diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index bd11ae0..12646c0 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -28,7 +28,7 @@ use Gitweb::Git; use Gitweb::Config; use Gitweb::Request; use Gitweb::Escape; -use Gitweb::HTML::Link; +use Gitweb::HTML; BEGIN { CGI->compile() if $ENV{'MOD_PERL'}; diff --git a/gitweb/lib/Gitweb/HTML.pm b/gitweb/lib/Gitweb/HTML.pm new file mode 100644 index 0000000..a0a1606 --- /dev/null +++ b/gitweb/lib/Gitweb/HTML.pm @@ -0,0 +1,17 @@ +#!/usr/bin/perl +# +# Gitweb::HTML -- gitweb's HTML subs package +# +# This program is licensed under the GPLv2 + +package Gitweb::HTML; + +use strict; +use warnings; +use Exporter qw(import); + +our @EXPORT = qw(href); + +use Gitweb::HTML::Link; + +1;
-- 1.7.1.454.ga8c50c