0👍
✅
You need to tell the mixin declaration where to render the block content that is passed to it. You can do that by adding block
to the appropriate part of the mixin declaration. In your case, the declaration needs to be modified to be:
mixin createMenu(catalog)
q-list(dense style='min-width: 100px')
q-item(v-for='category in catalog', :key='category.permalink', href='#', clickable='clickable', v-close-popup='v-close-popup')
q-item-section {{ category.title }}
q-item-section(side='side')
q-icon(name='keyboard_arrow_right', v-if='category.hasChildren')
if block
block
See Mixin Blocks in the Pug documentation for more info.
Source:stackexchange.com