Akron | 0e1ed24 | 2018-10-11 13:22:00 +0200 | [diff] [blame] | 1 | % use Mojo::JSON 'encode_json'; |
2 | |||||
3 | % if (stash('api_response')) { | ||||
4 | %= javascript begin | ||||
5 | % my $kq_hash = stash('api_response'); | ||||
6 | % $kq_hash->{matches} = ["..."]; | ||||
7 | KorAP.koralQuery = <%= b(encode_json($kq_hash))->decode %>; | ||||
8 | % end | ||||
9 | % }; |