Subscribe on changes!

ability to replace "" inside tags which contain js code or variable to { } as svelte

avatar
Apr 28th 2023

What problem does this feature solve?

{ } more readable than " "especially when containing multiple lines of code for example

<button @click="some_action "> <button @click={some_action }> i think the second one is more readable by using { } inside tag instead of " " we can ignore using : before props name to indicate it as reactive because any sing inside {} will be reactive but when using " " we must use : before prop name

What does the proposed API look like?

more readable code with adding this option.

avatar
May 2nd 2023

This is not something we will consider, because it makes the markup no longer syntactically valid HTML.