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

3
LINES

< > BotCompany Repo | #1030075 // divUnlessEmpty - <div> if contents is not empty, otherwise nothing

JavaX fragment (include)

sS divUnlessEmpty(S s, O... params) {
  ret empty(s) ? "" : div(s, params);
}

Author comment

Began life as a copy of #1025996

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1030075
Snippet name: divUnlessEmpty - <div> if contents is not empty, otherwise nothing
Eternal ID of this version: #1030075/1
Text MD5: a92c8c2e448bb7e578e8975961ec4244
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-05 09:56:54
Source code size: 79 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 231 / 256
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)