+ $header{content_type} = 'application/json';
+ $header{content_type} = 'text/plain' if exists $get{debug};
+ print $_, '(' for $get{callback} // ();
+ print $converter->encode($data);
+ print ')' for $get{callback} // ();
+ return 1;
+ } or do {
+ $header{status} = '500 File unavailable';
+ $header{content_type} = 'text/plain';
+ print "Conversion failed: $@";
+ };
+ exit;
+}
+
+Html({
+ title => "$source source code",
+ version => '1.2',
+ description => !$source ? 'Index of source files for this site.' : [
+ "Source code of the $source file at this site,",
+ "with syntax highlighted and references linked."
+ ],
+ keywords => [qw'
+ sheet cheat source code perl plp html agpl
+ '],
+ stylesheet => [qw'light dark mono red'],
+ data => [$source =~ m{\A($incname)\z}],
+});