Table of Contents generated with DocToc
I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.
But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.
Svelte is a language.
Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?
A few projects that have answered this question:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Here is a way to flatten python dictionaries for making multipart/form-data POST requests. | |
{"some": ["balls", "toys"], "field": "value", "nested": {"objects": "here"}} | |
-> | |
{"some[0]": "balls", "some[1]": "toys", "field": "value", "nested[objects]": "here"} | |