D
D
Destell2017-11-23 09:18:59
Pug
Destell, 2017-11-23 09:18:59

Is it possible to combine a for loop and an array in Pug?

View code

img.image-1(src='img1')

text
    | Текст

text will receive data from an array. is it possible to somehow bind for to this, so as not to manually prescribe the numbers of images in the call, i.e. img1, img2 etc?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question