Inline rendering with document.currentScript
Inline rendering with document.currentScript Lean Rada describes a neat trick that takes advantage of the document.currentScript property. You can use that to drop in a tiny inline If you define a shortcut function like this: $=(...n)=>document.currentScript.replaceWith(...n) You get a tiny templa…
Read the full story at Simon Willison's Weblog ↗
Timeline · 1 report
- 2026-10-17 21:11 · Simon Willison's Weblog
Inline rendering with document.currentScript