I am new to jade and I have the following problem. Having this (simplified) mixin:
mixin someMixin()
.someClass
block first
.otherClass
block second
Now I am trying to use this mixin several times in one template. Like this.
+someMixin()
block first
div First Block of first Mixin
block second
div Second Block of first Mixin
+someMixin()
block first
div First Block of second Mixin
block second
div Second Block of second Mixin
as a result, only the blocks of the first mixture are used. Like this
<div class="someClass">First Block of first Mixin</div>
<div class="otherClass">Second Block of first Mixin</div>
<div class="someClass">First Block of first Mixin</div>
<div class="otherClass">Second Block of first Mixin</div>
I expected this result:
<div class="someClass">First Block of first Mixin</div>
<div class="otherClass">Second Block of first Mixin</div>
<div class="someClass">First Block of second Mixin</div>
<div class="otherClass">Second Block of second Mixin</div>
What am I missing here? Thanks in advance.
Amiroo
source
share