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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue May 1 11:05:04 2007 UTC (19 years, 2 months ago) by wakaba
Branch: MAIN
Changes since 1.2: +5 -5 lines
++ ChangeLog	1 May 2007 11:04:56 -0000
	* parser.cgi: Module names are updated.

	* parser-interface.en.html: Link to Whatpm introduction
	is added.

2007-05-01  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.1
7     use SuikaWiki::Input::HTTP; ## TODO: Use some better CGI module
8    
9     my $http = SuikaWiki::Input::HTTP->new;
10    
11     ## TODO: _charset_
12    
13     my $mode = $http->meta_variable ('PATH_INFO');
14     ## TODO: decode unreserved characters
15    
16 wakaba 1.2 if ($mode eq '/html' or $mode eq '/test') {
17 wakaba 1.1 require Encode;
18 wakaba 1.3 require Whatpm::HTML;
19     require Whatpm::NanoDOM;
20 wakaba 1.1
21     my $s = $http->parameter ('s');
22     if (length $s > 1000_000) {
23