Writing in BEM using LESS
This is something I found myself thinking about when using the Block Element Module (BEM) methodology when coding using the preprocessor LESS.
I like this for the follow reasons:
- Less repeating code
- Ability to change the block name and auto cascade to the element descendants
- Less lines and easier to read
So the compiled elements would look like this: