V
V
Vladyslav_lab2020-01-29 12:02:01
Pug
Vladyslav_lab, 2020-01-29 12:02:01

How to reduce pug jade mixin call multiple times?

Tell me if it is possible to make a multiple call of the mksin using the "formula" for example

.galery.flex 
        +galeryImg
        +galeryImg
        +galeryImg
        +galeryImg
        +galeryImg
// заменить на (но это не работает)
            .galery.flex 
                +galeryImg * 5

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2020-01-29
@Vladyslav_lab

.galery.flex 
  - for (let i = 0; i < 5; i++)
      +galeryImg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question