gitweb: Create Gitweb::Format module
commit7758adfc6916d859a1f1ac27e8338d17da55a151
authorPavan Kumar Sunkara <pavan.sss1991@gmail.com>
Wed, 9 Jun 2010 11:09:15 +0000 (9 16:39 +0530)
committerPavan Kumar Sunkara <pavan.sss1991@gmail.com>
Thu, 8 Jul 2010 02:51:31 +0000 (8 08:21 +0530)
tree4e47ef359c0f35559243e3275d90c382ba35860a
parent2f31e3a3f2bbf573c1cea2cb34592cc5b648b89d
gitweb: Create Gitweb::Format module

Create Gitweb::Format module in 'gitweb/lib/Gitweb/Format.pm'
to store the subroutines related to formatting of HTML
fragments required for gitweb.

This module depends on Config.pm, View.pm, Escape.pm,
Util.pm and Request.pm. It mainly contain functions returning
short HTML fragments or transforming HTML fragments. Also
include subroutines regarding avatar formatting.

Subroutines moved:
format_log_line_html
format_ref_marker
format_subject_html
picon_url
gravatar_url
git_get_avatar
format_search_author
format_author_html
format_git_diff_header_line
format_extended_diff_header_line
format_diff_from_to_header
format_diff_cc_simplified
format_diff_line
format_snapshot_links

Update 'gitweb/Makefile' to install Gitweb::Format alongside gitweb.

Signed-off-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
gitweb/Makefile
gitweb/gitweb.perl
gitweb/lib/Gitweb/Format.pm [new file with mode: 0644]