gitweb: Create Gitweb::View module
commitad24b53f2700ab5831ebdea4efc8a9f602f228bf
authorPavan Kumar Sunkara <pavan.sss1991@gmail.com>
Mon, 7 Jun 2010 19:29:06 +0000 (8 00:59 +0530)
committerPavan Kumar Sunkara <pavan.sss1991@gmail.com>
Thu, 8 Jul 2010 02:51:31 +0000 (8 08:21 +0530)
treea6d20c9ec7df723905f953b8da5195345521717d
parent5cab2b0b2bbb7f5601f6b0d6c1872c57504e5575
gitweb: Create Gitweb::View module

Create Gitweb::View module in 'gitweb/lib/Gitweb/View.pm'
to store the subroutines related to the HTML output
for gitweb.

This module depends on Git.pm, Config.pm, Request.pm,
Escape.pm and RepoConfig.pm. Action specific HTML div
subroutines are not included in this module due to
unmet dependencies of Gitweb::Parse and Gitweb::Format.

Subroutines moved:
*href
 get_feed_info
*chop_str
 chop_and_escape_str
*age_class
 age_string
*S_ISGITLINK
 mode_str
 file_type
 file_type_long
*get_page_title
 git_header_html
 git_footer_html
 die_error
*git_print_page_nav
 format_paging_nav
 git_print_header_div
 git_print_page_path
*print_local_time
 format_local_time
*insert_file
*git_get_link_target
 normalize_link_target
 git_print_tree_entry
*print_sort_th
 format_sort_th

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

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