/[pub]/test/html-whatpm/parser.cgi
Suika

Contents of /test/html-whatpm/parser.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Sun May 27 11:16:02 2007 UTC (19 years, 2 months ago) by wakaba
Branch: MAIN
Changes since 1.5: +22 -13 lines
++ ChangeLog	27 May 2007 11:15:58 -0000
	* parser.cgi: Output how long each process takes.
	Document element testing is moved to the |Whatpm::ContentChecker|
	module.

2007-05-27  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.1 #!/usr/bin/perl
2     use strict;
3    
4 wakaba 1.2 use lib qw[/home/httpd/html/www/markup/html/whatpm
5     /home/wakaba/public_html/-temp/wiki/lib];
6 wakaba 1.5 use CGI::Carp qw[fatalsToBrowser];
7 wakaba 1.6 use Time::HiRes qw/time/;
8 wakaba 1.1
9     use SuikaWiki::Input::HTTP; ## TODO: Use some better CGI module
10    
11     my $http = SuikaWiki::Input::HTTP->new;
12    
13     ## TODO: _charset_
14    
15     my $mode = $http->meta_variable ('PATH_INFO');
16     ## TODO: decode unreserved characters
17    
18 wakaba 1.2 if ($mode eq '/html' or $mode eq '/test') {
19 wakaba 1.1 require Encode;
20 wakaba 1.3 require Whatpm::HTML;
21     require Whatpm::NanoDOM;
22