bulknews.typepad.com Tatsuhiko Miyagawa's blog to discuss mostly tech and nerdy stuff. When you use middleware components in your PSGI app with Plack, you often want to enable them conditionally based on runtime environments. For example, some administrative middleware like debug-toolbar or stacktrace should be enabled if it's accessed from your office network, and js/css-minifying middleware and