closure-stylesheets icon indicating copy to clipboard operation
closure-stylesheets copied to clipboard

GSS - conditional mixin

Open slavap opened this issue 10 years ago • 1 comments
trafficstars

There should be some way to process mixin parameters in conditional way, e.g. @defmixin test(AAA) { @if (AAA == 5) {...} @else {...} }

As simpler solution, may be selectFrom should be extended to be like Oracle decode() http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions040.htm

slavap avatar Oct 02 '15 18:10 slavap

Yes, we would definitely like to have this as a feature. It is just not built yet. If you're interested in developing it, let me know.

iflan avatar Oct 05 '15 08:10 iflan