Libraryless. Click here for Pure Java version (2798L/17K).
1 | sS ol(S... list) { |
2 | ret ol(asList(list)); |
3 | } |
4 | |
5 | sS ol(LS list, O... params) { |
6 | new StringBuilder buf; |
7 | int i = indexOf(params, null); // null separates params for ul from params for li |
8 | if (i == -1) i = l(params); |
9 | for (S s : withoutNulls(list)) |
10 | buf.append(tag("li", s, subArray(params, i+1))).append("\n"); |
11 | ret containerTag("ol", buf, subArray(params, 0, i)) + "\n"; |
12 | } |
Began life as a copy of #1002439
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029719 |
Snippet name: | ol - make ordered HTML list (no htmlencode) |
Eternal ID of this version: | #1029719/1 |
Text MD5: | 61ef420e959a2a560628c438f4cedbdc |
Transpilation MD5: | a5712edfed1a1621e92054d14df62522 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-08 15:28:45 |
Source code size: | 388 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 200 / 289 |
Referenced in: | [show references] |