You can just get it from cached &. Here is a simple BEM example:
HTML
<ul class="pagination">
<li class="pagination__item">
<a class="pagination__link" href="#">
Page 1| // This SVGO plugin converts the `id` attribute on an element into a `class` attribute with the same value. | |
| // To use it, you'll need to disable the `cleanupIDs` plugin, otherwise you won't have any `id` attribute to replace :) | |
| 'use strict'; | |
| exports.type = 'perItem'; | |
| exports.active = true; | |
| exports.description = 'convert id attribute to class, using the same value'; |
| // ---- | |
| // Sass (v3.4.21) | |
| // Compass (v1.0.3) | |
| // ---- | |
| // Sass modifiers mixin by Sarah Dayan | |
| // Generate All Your Utility Classes with Sass Maps: frontstuff.io/generate-all-your-utility-classes-with-sass-maps | |
| // http://frontstuff.io | |
| // https://github.com/sarahdayan |