A
A
Anatoly Salamatin2017-03-20 21:11:04
Pug
Anatoly Salamatin, 2017-03-20 21:11:04

Is it possible to move this block into a mixin?

Hello! Please tell me if this block is possible

mixin test()
  .about-us-icons__item
    include _blocks/_svg/_diamond
    span.about-us-icons__title Гарантия лучшей цены
    p.about-us-icons__text Мы сделаем лучшее предложение на выбранный Вами тур!
    a(href="javascript:void(0);").about-us-icons__link Подробнее

put in a mixin? Inclusion problem. The path must change (the last file in the path)
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2017-03-20
@farcer

Alas, pug does not expand variables in paths.
It is possible to get out with the help of case , although, IMHO, it will not be very beautiful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question