☠ Emoji to indicate private SCSS variables in the global scope ☠

// don't mess with this one! $☠include-once: (); @mixin include-once($name){ @if not index($☠include-once, $name){ @content; $☠include-once: append($☠include-once, $name) !global; } }; @mixin foo(){ @include include-once(foo){ /* do not include this foo again */ } } @mixin bar(){ @include include-once(bar){ /* do not include this bar again */ } } @include foo; @include foo; @include foo; @include bar; @include bar; @include bar;