Last active
August 30, 2016 01:11
-
-
Save marklawlor/3718e4f43ae8e084d849d99fe0178c59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var DOM = (selector, context) => ( | |
dom => DOM2 = (selector, content) => ( | |
DOM2.toString = () => dom, | |
dom += `<${selector}>${content}<\/${selector.split(' ')[0]}>`, | |
DOM2 | |
))('') | |
(selector, context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var DOM=(a,b)=>(c=>f=(d,e)=>(f.toString=()=>c,c+=`<${d}>${e}<\/${d.split(' ')[0]}>`,f))('')(a,b); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment