Replies: 2 comments 4 replies
-
Reusing an HTML concept because it seems adjacent to what we're doing isn't a good idea. We learned that previously with |
Beta Was this translation helpful? Give feedback.
1 reply
-
They are an important visual cue to make it obvious that snippets are not a plain template nodes but a distinct svelte language concept that is more than "just html". Your suggestion would cause collisions between the snippet name and html tag namespace and make .svelte harder to read/follow. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Tenets document states
I totally support the idea of snippets, but the syntax. All the same functionality can be expressed in SGML-style syntax.
Here is an example (taken from Svelte 5 documentation preview):
Param destructuring:
All the same functionality, just the looks.
Because curly braces irritate the eye in html code.
Beta Was this translation helpful? Give feedback.
All reactions