Multiple blocks in jade mixins?
Author: mentalheadCreated Oct 17, 2014Updated Oct 4, 2025
Labelsmixin
I was just wondering is there a way to use multiple blocks with different content with a jade mixin, like this or are we just limited to one block with same content per mixin?
mixin article
block
p Mixin paragraph
block
blockand get the following results:
<p>This is my first block</p>
<p>Mixin paragraph</p>
<p>This is my second block</p>
<p>This is my third block</p>Source: pugjs/pug