Update to API v0.1
diff --git a/templates/query.html.ep b/templates/query.html.ep
index c6c17d5..0eebd0c 100644
--- a/templates/query.html.ep
+++ b/templates/query.html.ep
@@ -1,11 +1,23 @@
% use JSON::XS;
% if (stash('search.query') && stash('test_port')) {
-% state $json = JSON::XS->new->allow_blessed->pretty;
-<code class="query serial<% if (param('action') eq 'inspect') { %> active<% } %>">
+% my $action;
+% if (param('action') && param('action') eq 'inspect') {
+% $action = ' active" style="cursor: default';
+% };
+% state $json = JSON::XS->new->allow_blessed->pretty->canonical(1);
+<pre class="query serial<%== $action // '' %>">
<span>JSON-LD Serialization for <%= param 'q' %> (<%= param 'ql' %>)</span>
- <pre>
+ <code>
<%= $json->encode(stash('search.query')) =%>
- </pre>
-</code>
+ </code>
+</pre>
+%= javascript begin
+hljs.initHighlightingOnLoad();
+% unless ($action) {
+$("pre.query.serial").on("click", function () {
+ $(this).toggleClass('active');
+});
+% };
+% end
% };