Answer the question
In order to leave comments, you need to log in
Is it possible in Pug to substitute the parent selector?
In Sass it is possible to use the & character to denote a parent selector, is there a similar feature in Pug? for example
.my_class
&_inner
&_more
<div class="my_class">
<div class="my_class_inner">
<div class="my_class_inner_more"></div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Yes, only under BEM for webpack there is a pug-bem-plain-loader loader, something similar was also for gulp. Syntax
.block._mod
.__element._mod
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question