Answer the question
In order to leave comments, you need to log in
Why don't extends and block and variables work in pug?
Good afternoon,
there are two blocks, their pug files are located in different folders
-- src/phone/phone.pug
.phone.d-flex
span.phone__icon
i.fa.fa-phone(aria-hidden='true')
.phone__container
a(class=`phone__link#{phonelink}` href='tel:455') 455
block communicate
extends ../phone/phone.pug
block communicate
span.communicate.d-flex
a.communicate__whatsapp(href='')
img(src='images/social/whatsapp.svg' alt='whatsapp')
a(href='communicate__telegram')
img(src='images/social/telegram.svg' alt='telegram')
a(href='communicate__viber')
img(src='images/social/viber.svg' alt='viber')
block variables
- var test = "Test";
include "../communicate/communicate.pug"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question