Answer the question
In order to leave comments, you need to log in
How to add class to extend block in jade?
Hello! I have 2 pages - parent.jade:
div.about
block about
extends parent
block about
<div class="about about--red"></div>
Answer the question
In order to leave comments, you need to log in
it won't work that way.
It is necessary to place div.about in parent.jade in block about, then in child.jade you can write:
block about
div.about.about--red
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question