Re:AbsurdJS – JavaScript based CSS preprocessor
by jeremiep on Friday October 11, 2013 @08:54PM
(#6536772)
One use case would be to create server-side 'widgets' just like Yesod does.
The basic idea is that they combine the document, style and scripting in a single reusable component. Pages are then built by composing these widgets together and can finally be used as templates when responding to requests.
...or is there some use case for CSS-in-your-JS that I can't quite manage to imagine? I'm straining my brain to think of one...
Edit: more info at http://davidwalsh.name/write-css-javascript
I guess it's trying to be a more flexible version of LESS/SASS by leveraging the full power of JavaScript. I've never felt that LESS was really lacking in power... I'm curious what others think. But interesting idea.