3 ms·
> proceeds to show examples with a very magic $ syntax To be fair, that's valid JS, the syntax itself is not magic but what happens afterwards/how Svelte picks
by capableweb 3y ago
> proceeds to show examples with a very magic $ syntax
To be fair, that's valid JS, the syntax itself is not magic but what happens afterwards/how Svelte picks it up.
The templating though, that's some non-valid HTML/JS magic.
- Timon3 3y agoThe syntax is vanilla, but not the semantics. Kinda makes it seem like malicious compliance.
- shiomiru 3y agoI would guess they just wanted to make it work with existing tooling, so that e.g. standard JS syntax highlighters wouldn't break on code written in this framework.
- internetter 3y agoBut all your code is written in .svelte, a very much non-standard file format which undergoes compilation anyway..