← Back to feed

Inline rendering with document​.currentScript

L3 · BuilderTutorials & GuidesSimon Willison's Blog· 10/17/2026

Practical JavaScript trick for builders creating dynamic web content without external dependencies.

AI Summary

Simon Willison shares a JavaScript technique using document.currentScript to create inline templates that replace themselves with dynamic content.

Read Original
0 upvotes · 0 downvotes · 1 min read

Related Articles

L3 · BuilderTutorials & GuidesLessWrong AI
Tips for Multiagent Work with Claude Opus 5.5

LessWrong shares practical tips for managing multiagent systems with Claude Opus 5.5, emphasizing professional communication between subagents and avoiding manager agent bottlenecks.

L3 · BuilderTutorials & GuidesTowards Data Science
I Built a Claim-Checker for Writing With Codex. It Passed a Wrong Claim.

Author built a claim-checker tool using Codex that incorrectly passed a wrong claim, revealing limitations of rule-based AI verification systems.

L4 · DeveloperTutorials & GuidesTowards Data Science
Deploying Data Science Tools: Part 1

Part 1 of a guide on deploying data science code across different environments and platforms.

L3 · BuilderTutorials & GuidesTowards Data Science
I Tested Four Ways to Give an AI Assistant a Memory. The Obvious One Was the Worst Value.

Testing shows pasting full chat history costs 20-31x more than lookup methods with no performance benefit for AI memory.

L4 · DeveloperTutorials & GuidesTowards Data Science
A Scaffold at the Gate: Building AI Applications That Can Evolve

Data scientists need software engineering principles to build AI applications that can evolve, especially as AI agents write code.