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

Yes but you shouldn't do that really. You should use a view templating system instead to recycle the patterns you spot, e.g. button.tpl would contain the abstraction of classes.

The moment you collapse the classes in to a single class you're back to square one and the reason functional CSS arose be first place.

Adam Wathan promotes this pattern himself in this video.

https://youtu.be/J_7_mnFSLDg



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

Search: