Is there any way assigning a Pug mixin to a variable? (N.b. not the results of the mixin.)
I.e. something like this:
mixin a
...
mixin b
...
mixin c
...
-
let myMixin;
switch (someCondition) {
case 1: myMixin = b; break;
case 2: myMixin = c; break;
default: myMixin = a;
}
...And then use it like this further down in the template:
+myMixin