|
|
|
|
|
by harel
684 days ago
|
|
I guess it's a personal preference. I tried it, and it looked a mess in my eyes. Take a strong tag: Div(
"If you click '",
Strong('Accept all'),
"', we and",
A('our partners', href='/v2/partners', target='_blank'),
...
It just verbose, very Java like, and feels like a step back in a commercial setting. It's absolutely fine if you're a single developer, HTML disgusts you, and Javascript is an abomination. I know people who think that way and I know they would love it. But I'm as comfortable with JS and I am with Python (after over 25 years using both). Someone likened JSX to it - but it's not even close - JSX brings the tag structure INTO JavaScript, not takes it away, to achieve the exact opposite result of fastHTML. |
|
I do prefer lower case callables but that’s a minor nitpick, and “htpy” and other libs can do that.