Nils Diewald | 1d2903f | 2014-11-03 22:31:20 +0000 | [diff] [blame] | 1 | % use JSON::XS; |
| 2 | |
| 3 | % if (stash('test_port') && stash('search.apirequest')) { |
Nils Diewald | e99d904 | 2014-11-20 23:36:54 +0000 | [diff] [blame^] | 4 | <pre class="query api" onclick="this.classList.toggle('active')"> |
Nils Diewald | 1d2903f | 2014-11-03 22:31:20 +0000 | [diff] [blame] | 5 | <span>API Response for </span> |
| 6 | <span style="font-size: 70%"><%= stash('search.apirequest') %></span> |
| 7 | <code> |
| 8 | <%= stash('search.apiresponse') =%> |
| 9 | </code> |
| 10 | </pre> |
| 11 | %= javascript begin |
| 12 | hljs.initHighlightingOnLoad(); |
Nils Diewald | 1d2903f | 2014-11-03 22:31:20 +0000 | [diff] [blame] | 13 | % end |
| 14 | % }; |