plone/diazo — pull request #8 by davidjb (2012-08-02 23:10:03+00:00)
Title: Allow Diazo and XSLT middleware to read headers to select theme

Effectively, allowing the middleware to use HTTP headers to select their rules/XSLT would mean being able to have one (or several) Diazo-middleware workers that don't require concrete configuration to theme -- one need only set the headers and an appropriate theme will be used.

In my specific case, this would mean my web server can control the theme being sent (eg for a certain sub-directory, regex match or any other condition my front end supports) by adjusting the header being sent back to the middleware.

Tests and docs included.