| ▲ | progx 8 hours ago | |
I don't like this html-syntax, cause you use a separate syntax-methods for existing js-functions wrapped as html-tags:
As a JS/TS dev it feel unnatural to write language operations as html-tags. That is what i did not like in svelte too.Here something that looks little more like PHP-Style, better separation, but too much to type:
Shorter with a $-func for wrapping html-content
I don't know, has somebody a better idea? | ||
| ▲ | gdotdesign 8 hours ago | parent | next [-] | |
It's perfectly fine to allow if in tags (the compiler can figure it out). In Mint you can do that no problem: https://mint-lang.com/sandbox/6lnZHiG8LVRJqA | ||
| ▲ | zareith 8 hours ago | parent | prev [-] | |
Vue style attribute directives are imho a far better dx compared to all of the above. | ||