You can capture HTTPServerRequest as a function parameter in your vibe.web.web callback function and it'll detect this and send the object, so you can consult the session or cookies from it. Personally I would think themes would belong in different CSS files, so you could definitely send the variable containing the theme name to your diet template to get the corresponding CSS without having to generate a different diet template.