A
A
Anastasia Dementieva2016-06-03 14:16:21
Pug
Anastasia Dementieva, 2016-06-03 14:16:21

How to make previews in jade?

- var little = ['img/content/phone-little1.png', 'img/content/phone-little2.png', 'img/content/phone-little3.png', 'img/content/phone-little4.png']

ul.slideshow__thumbs 
  each value in little		  
     li.slideshow__thumbs-item
        a(href="").slideshow__thumbs
            img(src="{#value}")

How to make it so that each list has a picture from little? Thank you.
Galp swears at the last line

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2016-06-03
@alexey-m-ukolov

img(src=(value))
jade-lang.com/reference/interpolation

K
Konstantin Velichko, 2016-07-12
@Zoxon

img(src="#{value}")
img(src=value)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question