The flavour for a given page is specified in the extension of the file being requested. For example:
Table 4-4. Examples of request URIs
url | what happens |
---|---|
http://some.blog.org/ | brings up the index in the default flavour which is "html" |
http://some.blog.org/index.html | brings up the index in the "html" flavour |
http://some.blog.org/index.rss | brings up the index in the "rss" flavour (which by default is RSS 0.9.1) |
http://some.blog.org/2004/05/index.joy | brings up the index for May of 2004 in the "joy" flavour |
Additionally, you can specify the flavour by adding a flav
variable in the query-string. Examples:
Table 4-5. Specifying flavour using the querystring
uri | what happens |
---|---|
http://some.blog.org/ | brings up the index in the default flavour which is "html" |
http://some.blog.org/?flav=rss | brings up the index in the "rss" flavour |
http://some.blog.org/2004/05/index?flav=joy | brings up the index for May of 2004 in the "joy" flavour |
You can change the default flavour from html to some other
flavour in your config.py file with the
default_flavour
property:
Doing this will set the default flavour to use when the URI the user has used doesn't specify which flavour to use. For example, if you do the above, then the following URIs will use the default flavour: