v2.svelte.dev icon indicating copy to clipboard operation
v2.svelte.dev copied to clipboard

show example of compiler output in the docs

Open jedwards1211 opened this issue 8 years ago • 1 comments

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.

jedwards1211 avatar Oct 06 '17 15:10 jedwards1211

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.

Conduitry avatar Oct 06 '17 16:10 Conduitry