Answer the question
In order to leave comments, you need to log in
Why in Jade/pug, when a mixin is called more than once, its contents are duplicated in the following?
Good day! There was a problem with mixins in Jade/pug. I created this mixin
mixin containerFull(number)
div(class="container-full block-#{number}")
.container
block content
.ChinaCampus
+containerFull(1)
block content
.row
+image(1,'ChinaCampus/head.png')
+image(2,'ChinaCampus/head.png')
+containerFull(2)
block content
.row
+image(1,'ChinaCampus/logo.png')
+image(2,'ChinaCampus/triple.png')
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