blob: 6ef646f12919b866aafd1f40b63cecac256f6a52 [file] [log] [blame]
Nils Diewald02df9912014-06-03 16:08:07 +00001% use JSON::XS;
2
3% if (stash('search.query')) {
Nils Diewald2329e1d2014-06-12 16:07:57 +00004<code class="query serial<% if (param('action') eq 'inspect') { %> active<% } %>"><span>JSON-LD Query for <%= param 'q' %> (<%= param 'ql' %>)</span><pre>
5% my $json = JSON::XS->new->allow_blessed->pretty;
Nils Diewald02df9912014-06-03 16:08:07 +00006%= $json->encode(stash('search.query'))
7</pre></span></code>
8% }