I hereby claim:
- I am halicea on github.
- I am halicea (https://keybase.io/halicea) on keybase.
- I have a public key ASCm_btCsuguA7fSd3CRxN2uVKgVV560mnUVtC5sWxDxoQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| const templateCache = {} | |
| let render = async (data, selector, target, swap = "innerHTML") => { | |
| let cache = templateCache["selector"]; | |
| if(cache){ | |
| tmpl = cache; | |
| } | |
| else if(selector.startsWith("/")){ | |
| try { | |
| const res = await fetch(selector); | |
| if (res.status === 200){ |