% use JSON::XS; | |
% if (stash('test_port') && stash('search.apirequest')) { | |
<pre class="query api" onclick="this.classList.toggle('active')"> | |
<span>API Response for </span> | |
<span style="font-size: 70%"><%= stash('search.apirequest') %></span> | |
<code> | |
<%= stash('search.apiresponse') =%> | |
</code> | |
</pre> | |
%= javascript begin | |
hljs.initHighlightingOnLoad(); | |
% end | |
% }; |