v2.svelte.dev
v2.svelte.dev copied to clipboard
show example of compiler output in the docs
As a curious, casual observer, my first question upon reading about Svelte was what the compiled templates actually look like and how they perform DOM updates. My second question is how big/efficient the generated code is if it doesn't depend on anything.
I'm too lazy right now to download the compiler and see for myself 🐱
Since this is the fundamental premise of your technology I think it would be wise to show examples of compiled templates in the docs.
You can go to the REPL or click any of the 'open in repl' links next to examples in the guide, and then click the input/output toggle at the bottom of the page. Perhaps this could be documented a little more.