The initial source comes from sdcuike/issueBlog#4
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense
// 1 April 2020 | |
// variant on jsx in vanilla.js | |
// see https://gist.github.com/dfkaye/f3229e5ace79b6873022987f160c7b61 | |
// takes a template string and mimeType | |
// returns dom element from the template string | |
// TODO (maybe) - add UI map capability - i.e. UI = { name: <node with var=name> } | |
function element(template, mimeType) { | |
return (new DOMParser) |
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense