And yet people seem to keep inventing variations of this as "templating" languages.
We would have seen dramatically fewer bugs and injection attacks over the years if PHP had made <input value="<?=$value?>"> a perfectly safe and normal thing to write back in 2005.
This has been fixed in PHP 8. https://wiki.php.net/rfc/string_to_number_comparison
That… makes it even worse.
Also, should 48 == "48.0" be true? How about "048", "48.", "0x30", " 48 ", "48foo", "3*16", "XLVIII", "forty-eight"?
If you decide languages based on minutiae like this, I can only pity you.
And yet people would take a bullet for React and the JSX templates.
I was so confused when I heard that, "like... a HTML file?".
Keep going at this rate and we'll be using frames again.
That’s pretty much what htmx is…
Serving a static HTML file is not server-side rendering.
It's much dumber than that. The people advocating for SSR want the server to respond with HTML generated based on whatever is in the request.
This thread is so cope.
The ability to mix html and code means it’s extremely easy to get started which is the big strength.