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

you can put anything inside class attribute

<div id="data" class="{json: 'x'}"/>

you can mix actual classes with JSON, just put JSON at the end:

<div class="header inline {json: 'x'}"/>

CSS selectors will work just fine




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

Search: