1<===> input.scss
2@mixin all-vip() {
3  test: vip;
4}
5@mixin gold() {
6  test: gold;
7}
8@mixin platinum() {
9  test: platinum;
10}
11
12@mixin icons-sprite($icon-name){
13    @if $icon-name == 'all-vip' {
14        @include all-vip();
15    }
16    @else if $icon-name == 'gold' {
17        @include gold();
18    }
19    @else if $icon-name == 'platinum' {
20        @include platinum();
21    }
22}
23
24div {
25  @include icons-sprite("platinum");
26  @include icons-sprite("all-vip");
27  @include icons-sprite("gold");
28}
29div {
30  @include icons-sprite(platinum);
31  @include icons-sprite(all-vip);
32  @include icons-sprite(gold);
33}
34<===> output.css
35div {
36  test: platinum;
37  test: vip;
38  test: gold;
39}
40
41div {
42  test: platinum;
43  test: vip;
44}
45