Mixin with parameter support

Parameter support
Would be great to have the possibility to pass a parameter to a mixin.

As an example:
We have a mixin for creating a link, and thus end up with the usual option-set with internal/external options.

Sometimes the link is optional and sometimes its mandatory.
In this case we need to duplicate our mixin, and if its only one I guess its a descent solution.

But when you end up with the same for a “media mixin” and some more and you start to wonder why you are using mixins.

Hi. We strive to keep complexity low, this is why there are no conditionals in schemas at all. However you should be able to solve your problem compile time by simply generating two different mixins (or content types) build time.

1 Like