Closed s4msung closed 7 years ago
Pug 2.5 handle only blocks after an extends, so you just have to put your include in each block that use the mixin:
extends main
block content
include item_mixin
.container
h2 Example pages
ul.navlist
each item in items
+item_mixin(item)
It will be fixed in 3.0.
You can update to 3.0.0-alpha2
, it should be fixed. Please don't hesitate to test the new pug-php 3 and give us your feedback.
When including a template which declares a mixin, it's undefined in the current template.
I have packaged a demonstration: sample.zip
Just run:
it should shout about undefined index item_mixin_mixin