I can’t find the module we use in the codebase (we used a very early version since the author was my cofounder) but I think it evolved into shpadoinkle-html.
Yours being its own standalone thing is great though. Bookmarked!
This is cool. I’ve been using Miso with static stylesheets, but been uneasy about the “stringly-typed” nature of linking them together the naive way.
What stops me from using this straight away is that I’d want support for IDs as well as classes. I see no reason not to also generate bindings for those, except that it would ideally mean renaming the library (css-bindgen?), which would be a bit annoying at this stage.
Thanks for your feedback. This motivated me to release v0.0.3 with CSS id support and marking included files with addDependentFile.
Id support didn’t get into initial version because my project don’t have any and e.g. whole bulma library (+600kb) dito.
I think of CSS id as a stricter version of CSS class (linear CSS class).