I'm afraid Smak itself as an application isn't really fit for public
consumption (yet). I'll be merging my proprietary codebase at
Smarkets (which fixes the errors you mentioned along with many others)
with the public Smak codebase as soon as possible.
As for ewgi, I've just added some introductory documentation to the
project (which you can find in README.rst or on the main github
project page: http://github.com/skarab/ewgi/tree/master). You are
best off starting with the MochiWeb "Hello, wordl" example and
building your application from there.
Best,
Hunter
Then you chain the calls. The chaining can be done where you want.
I usually do it in the dispatcher.
Here is a slightly modified version of the hello world example with a
middleware module. Hope this helps:
http://gist.github.com/148396