Rob's garden / notes / note

Note

Made a quick-and-dirty Nunjucks editor to test templates in the browser! #Notes

Literally just a HTML file, no frameworks here!

Ok now its a PWA too, so you can install it as an app and it looks a bit more nunjucks-y

Ok its got a service-worker too so its offline capable. I'll stop now honest

The offline version seems to be working consistently now, first I forgot to implement the “fetch” processes that actually uses the cache. Second I didn’t cache the html page itself 🤦‍♂️

It’s quite nice to have a minimal PWA as an exemplar to quickly reference how it all works

undefined

A screenshot of a website with 2 input boxes: one for data and one for a template, then a big output box

undefined

GitHub - robb-j/nunjucks-editor: A quick online editor & previewer for Nunjucks

undefined

A screenshot of the PWA version, with a bold green nav bar and green-themed inputs