Adding script to CML
npm install @aldinh777/reactive-cmlsvelte.
App.svelte
svelte
{title}
Paragraph
{content}
`
This code worth 189 Bytes of code. How memory expensive that is! and worse, it took almost a minute to write that piece of code (with notepad).
The first problem with it is that it used HTML tags, which is good because a lot of web developer familiar with tags but as you know it, you have to write a tag twice, one for the opening () and one for the closing (), making the size double than what it have to be.
Reactive CML, as the name suggest, instead of using HTML tags, it uses CML tags which is shorter and still keeps the familiarities with HTML Tags.
App.rc
`js
let title = 'Sample App'
let content = 'Bolditalicunderline'
div <
h3 <{title}>
p <
Paragraph
b>>
>
>
`
Bless me, Look at that shorter 146 Bytes of code. If you write the same code in svelte for a Trilion times, you write 43 Gigabytes less in Reactive CML. You can install bunch of games with that much storage and still have some left!
Other than it size, it also took only half a minute to write it (using notepad), half the time you need to write the code when with svelte`. That means you finish project earlier while another svelte developer still wasting their precious time writing their codes (using notepad). How Productive!