What I want to achieve is as follows in jade4j -
mixin mixin_a()
p This is mixin A
mixin mixin_b(mixin_reference)
p This is mixin B
+mixin_reference()
+mixin_b(mixin_a)
Here I am passing mixin_a as a reference in mixin_b
and expecting that as a parameter.
But, when I try to do +mixin_reference()
it says - mixin_reference is not defined
.
Question:
1. What wrong I am doing in calling the mixin_reference?
2. What should be the best to achieve the same functionality? (reason is this, because I am expecting passed parameter mixin name in mixin_b
as dynamic value.