#!/usr/bin/perl use strict; use CGI::Carp qw(fatalsToBrowser); my $data_dir_name = q[data/]; my $path = $ENV{PATH_INFO}; sub htescape ($) { my $s = shift; $s =~ s/&/&/g; $s =~ s/</g; $s =~ s/"/"/g; return $s; } # htescape if ($path =~ m[^/([0-9a-z-]+)$]) { my $name = $1; my $file_name = $data_dir_name . $name . '.dat'; if (-f $file_name) { if ($ENV{REQUEST_METHOD} eq 'GET') { my $data; { open my $file, '<:utf8', $file_name or die "$0: $file_name: $!"; local $/ = undef; $data = <$file>; } print qq[Content-Type: text/html; charset=utf-8
@{[htescape ($name)]}
See progress graph.
Texts from HTML5 and Web Workers specs:
© Copyright 2004-2008 Apple Computer, Inc., Mozilla Foundation, and Opera Software ASA.
You are granted a license to use, reproduce and create derivative works of this document.
Texts from XBL 2.0 spec:
Portions of this content are © 1998–2006 by individual mozilla.org contributors; content available under a Creative Commons license. (Details)
For contributors: You have to agree that your contributions are licensed under the terms quoted above.