#1693·pug

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?

jade
mixin article
  block
  p Mixin paragraph
  block
  block

and get the following results:

xml
<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>