Answer the question
In order to leave comments, you need to log in
How to do this in jade?
Hello.
There is a block that describes the structure and it is included on the main page several times.
You need to put another block inside the include in the form of a mixin.
Main page:
.page__block
include ../modules/promo-block/promo-block
include ../modules/preview/preview
+preview('Название', 'Дата')
Answer the question
In order to leave comments, you need to log in
As far as I understand, this block
should include this mix
. Since the block now depends on the parameters ('Name', 'Date'), I would also make it a mix that accepts these parameters. You can also put it in a separate file and connect it where necessary.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question