__layout.svelte is ugly... So is %sveltekit.head% #5816
Replies: 4 comments 9 replies
-
I could be wrong, but I think svelte uses the same syntax. If this changes it would probably have a ripple effect. |
Beta Was this translation helpful? Give feedback.
-
Honestly, |
Beta Was this translation helpful? Give feedback.
-
Also I would most likely to get rid of whole |
Beta Was this translation helpful? Give feedback.
-
They are just markups help the SSR server know where to place their rendering result. They're not parsed into XML tree so using a tag for either head or body is not useful. Also tag variant would confuse the rendering server. Ex, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As Rich would say, we are a compiler, we can do whatever we want.
So following the line of
__layout.svelte is ugly
so are%sveltekit.head%
and%sveltekit.body%
Why not change them to something like
<sveltekit:head />
and<sveltekit:body />
or anything that makes them look less out of place.Beta Was this translation helpful? Give feedback.
All reactions