visionmedia/jade — Issue #442: Cannot add content under mixin invocation as you can with blocks
Author: csuwldcat
Created: 2011-12-19 21:27:40+00:00
State: open

I have the following simple mixin:

'''mixin detail_block(icon, title, options)
- var options = options || {};
dl.detail-block(id= options.id)
dt(icon= icon) #{title}'''

In my template, I would like to do this:

mixin detail_block('person', 'Author', { id: 'question_author' })
dd
| foo
span bar

Apparently, Jade will not allow you to just add content under a mixin invocation as it does with blocks. The behavior I would expect, is that any content present under a mixin invocation be added to the last tier of content in the mixin once rendered. Can you make this possible?