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