+Tue Dec 5 13:02:08 PST 2006 (adam)
+ Made the YAML::HTML view automatically append content-type=text/html on
+ the resulting URLs.
+
Sun Dec 3 12:24:16 PST 2006 (adam) - Release 0.30
Updated the Makefile to support optional installation of the different
Serialization formats.
my $finder = URI::Find->new(
sub {
my($uri, $orig_uri) = @_;
- return qq|<a href="$uri">$orig_uri</a>|;
+ my $newuri;
+ if ($uri =~ /?/) {
+ $newuri = $uri . "&content-type=text/html";
+ } else {
+ $newuri = $uri . "?content-type=text/html";
+ }
+ return qq|<a href="$newuri">$orig_uri</a>|;
});
$finder->find(\$text);
$output .= $text;