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 | 27ae9ec | 2015-06-23 00:43:21 +0200 | [diff] [blame] | 4 | %= javascript begin |
Akron | fb6d87d | 2018-10-24 18:10:20 +0200 | [diff] [blame] | 5 | % my $kq_hash = stash('api_response'); |
Akron | 27ae9ec | 2015-06-23 00:43:21 +0200 | [diff] [blame] | 6 | % $kq_hash->{matches} = ["..."]; |
| 7 | KorAP.koralQuery = <%= b(encode_json($kq_hash))->decode %>; |
| 8 | % end |
| 9 | % }; |