static L<S> loadSnippets(S... ids) { ret loadSnippets(asList(ids)); } static L<S> loadSnippets(L<S> ids) ctex { new L<S> texts; Map<S, S> map = jsonDecodeMap(doPost( "ids=" + urlencode(join(" ", parseSnippetIDs(ids))), tb_mainServer() + "/get-multi.php")); for (S id : ids) texts.add(lookupSnippetID(map, id)); ret texts; }
Began life as a copy of #1003875
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1011991 |
| Snippet name: | loadSnippets v1 - fetch multiple snippets in one go - yes it uses POST |
| Eternal ID of this version: | #1011991/1 |
| Text MD5: | 9037498199a2763ded05546bc305a1ef |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-14 06:53:16 |
| Source code size: | 358 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 654 / 700 |
| Referenced in: | [show references] |