Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1030860 // div_class - HTML <div> with class as first argument

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3016L/18K).

sS div_class(S className, O contents, O... _) {
  ret div(contents, paramsPlus(_, class := dropDotPrefix(className)));
}

sS div_class(S className) {
  ret div_class(className, "");
}

Author comment

Began life as a copy of #1003125

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030860
Snippet name: div_class - HTML <div> with class as first argument
Eternal ID of this version: #1030860/3
Text MD5: 316bbfb4d2514b57b7143fd3636a32fd
Transpilation MD5: d5c8963d77b815d40e48cdf52bb3feb7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-04 17:39:31
Source code size: 189 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 187 / 269
Version history: 2 change(s)
Referenced in: [show references]