Akron | 27ae9ec | 2015-06-23 00:43:21 +0200 | [diff] [blame] | 1 | % use Mojo::JSON 'encode_json'; |
Nils Diewald | 02df991 | 2014-06-03 16:08:07 +0000 | [diff] [blame] | 2 | |
Akron | fb6d87d | 2018-10-24 18:10:20 +0200 | [diff] [blame] | 3 | % if (stash('api_response')) { |
Akron | fb6d87d | 2018-10-24 18:10:20 +0200 | [diff] [blame] | 4 | % my $kq_hash = stash('api_response'); |
Akron | 27ae9ec | 2015-06-23 00:43:21 +0200 | [diff] [blame] | 5 | % $kq_hash->{matches} = ["..."]; |
Akron | bc6b3f2 | 2021-01-13 14:53:12 +0100 | [diff] [blame] | 6 | <span id="koralQuery" data-koralquery="<%== b(encode_json($kq_hash))->decode->xml_escape %>"></span> |
Akron | 27ae9ec | 2015-06-23 00:43:21 +0200 | [diff] [blame] | 7 | % }; |