4.5. Order of Operations to Figure Out Which Flavour to Use

We know that you can specify the default flavour to use in the config.py file with the default_flavour property. We know that the user can specify which flavour to use by the file extension of the URI. We also know that the user can specify which flavour to use by using the flav variable in the query string.

The order in which we figure out which flavour to use is this:

  1. look at the URI extension: if the URI has one, then we use that.

  2. look at the flav querystring variable: if there is one, then we use that.

  3. look at the default_flavour property in the config.py file: if there is one, then we use that.

  4. use the html flavour