Can you test if a mixin exists?

Viewed 4927

Sass quick question (hopefully) here. Can you test for the existence of a mixin? e.g.

@if thumbnail-mixin {} @else { //define mixin }.

Ideally I'd use @unless, but that only exists on a fork. I'm aware you can overwrite a mixin but I'm thinking more if you can have a default mixin, rather than having to specify N variables in every case.

2 Answers
Related