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

5
LINES

< > BotCompany Repo | #1032744 // hkeyvalue - uses <data> tag. not very good. use hjs_setVar etc. instead

JavaX fragment (include)

1  
// <data> tag technically belong in <body> and will be moved there
2  
// by the browser
3  
sS hkeyvalue(S key, O value) {
4  
  ret hemptytag data("data-key" := key, "data-value" := value);
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032744
Snippet name: hkeyvalue - uses <data> tag. not very good. use hjs_setVar etc. instead
Eternal ID of this version: #1032744/4
Text MD5: 4348a887a5086855c034f48041632fb9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-04 05:40:55
Source code size: 185 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 155 / 176
Version history: 3 change(s)
Referenced in: [show references]