News for hackers. Stuff that matters.
Re:Writing HTML with Racket and X-Expressions (2019) by ng12 on Wednesday April 01, 2020 @02:04AM (#22746145)
> Even React’s syntax really isn’t that different from a template as you need to enclose JS expressions in curly braces right?

The difference is that they're real, actual JS expressions evaluated in the current scope. Anything you can express in JavaScript you can express in JSX without needing to learn anything new.

Re:Writing HTML with Racket and X-Expressions (2019) by elcritch on Wednesday April 01, 2020 @03:01AM (#22746393)
Ah, I keep forgetting Jinja expressions can't be real Python. That makes more sense. So really this article is relevant to only full template languages or non-functional languages. edit: Looks like [Selmer](https://github.com/yogthos/Selmer) is similar to EEx in the Clojure world.