I include a mixins into my scss file like this :
.element{
@include putOnCircle(2, 20em, 6em, false);
}
But instead of having the "2" parameter, I need to get this value directly from my html page. Maybe, I can use data-value :
<div class="element" data-value="2"></div>
And get the value with attr(). Then I could replace the "2" parameter by attr(data-value) for exemple.
It doesn't really work, and I wonder if it's possible to do such a thing.
I don't want to use jQuery just for that, nor define each .element[data-value=""]
possible.
If you have any idea, I'll take it.
Thanks for your help.