git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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
Previous: Pavan Kumar SunkaraNext: Pavan Kumar Sunkara
Message 3 of 17 in “gitweb: Move subroutines to Gitweb::Config module”
  1. 1/4 gitweb: Move subroutines to Gitweb::Config modulePavan Kumar Sunkara, Jun 7, 2010
  2. 2/4 gitweb: Create Gitweb::HTML::Link modulePavan Kumar Sunkara, Jun 7, 2010
  3. 3/4 gitweb: Create Gitweb::HTML modulePavan Kumar Sunkara, Jun 7, 2010
  4. 4/4 gitweb: Create Gitweb::HTML::String modulePavan Kumar Sunkara, Jun 7, 2010
  5. Pavan Kumar SunkaraJun 7, 2010
  6. Jakub NarebskiJun 8, 2010
  7. Ævar Arnfjörð BjarmasonJun 8, 2010
  8. Jakub NarebskiJun 12, 2010
  9. Ævar Arnfjörð BjarmasonJun 12, 2010
  10. Jakub NarebskiJun 12, 2010
  11. Petr BaudisJun 8, 2010
  12. Pavan Kumar SunkaraJun 8, 2010
  13. Petr BaudisJun 8, 2010
  14. Pavan Kumar SunkaraJun 8, 2010
  15. Petr BaudisJun 8, 2010
  16. Jakub NarebskiJun 8, 2010
  17. Jakub NarebskiJun 9, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.