Can less.js read class names and parameters from HTML?
I've just started using LESS and I love it. I'm now looking into grid.less which creates grids using LESS semantics. This enables me to do something like this //css .mydiv { .column(9); } //html <div class="mydiv"> 9 column wide</div> I've not studied less.js , but is there somehow possible to do the following: //html <div class="column(9)"> 9 column wide</div> Is there any way to achieve this? LESS cannot easily read a parameter from the HTML, as LESS is a preprocessor (it processes the CSS before anything is presented in HTML). However, you can prebuild classes that will essentially do the