Changes between Initial Version and Version 1 of Ticket #54366, comment 1


Ignore:
Timestamp:
Jun 22, 2017, 10:27:27 AM (7 years ago)
Author:
RJVB (René Bertin)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54366, comment 1

    initial v1  
    1313    }
    1414}}}
     15
     16and if you prefer putting the depspecs in the variant declarations and only take care of setting a default variant with a simple expression:
     17
     18{{{
     19switch_variant var1 var2 ... varN {
     20    "" {
     21        # empty variant means none is requested by the user, specify a suitable default
     22        default_variants +var?
     23    }
     24}
     25}}}
     26