require-jade icon indicating copy to clipboard operation
require-jade copied to clipboard

Mixin support

Open cjmyles opened this issue 11 years ago • 0 comments

Hi, I'd like to be able to use mixins in my Jade code that are imported in from another directory. Is this already possible or is it not supported? For example in my main Jade code:

include mixins/track
.track
    mixin trackView(data)

Then in my mixins/track.jade:

mixin trackView(data)
    p= data.title

cjmyles avatar Sep 11 '13 07:09 cjmyles