Hacker News new | past | comments | ask | show | jobs | submit login

Solenya does pretty much exactly what you've described: https://github.com/solenya-group/solenya

Interestingly, in a very early version classes were allowed to be expressed as arrays of strings just like you had, but in the vast majority of cases a space delimited string worked fine, so this feature was dropped for simplicity/uniformity.




I added the option to have classes as an array of strings to facilitate conditional classes. (I then filter out falsy values so I can use a simple

   condition && "conditional-class"
At the end of the class list.)




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

Search: