-<head>
-<meta http-equiv="content-type" content="<:= $header{content_type} :>">
-<title>sheet page source code</title>
-<:= stylesheet(qw'light dark mono red') :>
-</head>
+ $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;
+}