Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hey, you put CSS in my JavaScript!

Surely this could be done in a smarter way, using one of the many CSS preprocessors to replace the variable mapping done by `classes()`?

After all, the `render()` template just needs to reference variables!



I think you might want to try https://github.com/css-modules/css-modules




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: