Use Less mixins directly in HTML?

2019-03-01 14:13发布

问题:

Can I use the LESS mixins directly in the HTML? For example, this is my LESS mixin.

.padding(@size){
padding: @size;
}

Can I call this in HTML like

<div class="padding(0)"></div>