F
F
freeman02042017-03-11 14:27:44
Pug
freeman0204, 2017-03-11 14:27:44

What's wrong with the jade mixin?

mixin header_01(imageName)
  header
    div.container
      div.logo
        img(src="images/#{imageName}.png", alt="")
+header_01("logo");

gulp throws an error on this line +header_01("logo");. It is still not clear why the grate is put here img(src="images/#{imageName}.png", alt="")?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bob_cody, 2017-03-13
@freeman0204

img(src=`images/${imageName}.png`, alt="")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question