3 ms·
> rather than JSX's more sensible curly brackets I'm still waiting for the 2019 equivalent of http://haml.info/ http://haml.info/
by airstrike 8y ago
> rather than JSX's more sensible curly brackets
I'm still waiting for the 2019 equivalent of http://haml.info/ http://haml.info/
- hombre_fatal 8y agoI think Pug is the closest thing to Haml with traction: https://pugjs.org/language/conditionals.html https://pugjs.org/language/conditionals.html Here's a Pug -> JSX transformation: https://github.com/pugjs/babel-plugin-transform-react-pug https://github.com/pugjs/babel-plugin-transform-react-pug Detouring from the most popular path tends to come at the price of tooling idiosyncrasies that are rarely worth it, but it seems to at least work with eslint-react and has syntax highlighting in some editors.
- airstrike 8y agoLove it! Thanks for sharing
- mateuszf 8y agoHow about Hiccup? Some examples here: https://reagent-project.github.io/ https://reagent-project.github.io/ It's not haml, but I'd argue it's awesome.
- airstrike 8y agoThanks. Seems nifty but ClojureScript is a bit too foreign for me