tannerburson / multi-sinatra-sample

Sample application showing how to use multiple sinatra subclass applications in a single process.

This URL has Read+Write access

tannerburson (author)
Fri Jun 05 08:18:12 -0700 2009
commit  832348850410e4c8217bd637c82c9fa768a88e01
tree    8c5244bb57c934bf225ab0b0332a763a0881b831
parent  5d92021364995fe736d6372a972cc78ed47dff0a
name age message
file README Loading commit data...
file Rakefile
file config.ru
file sample.rb
directory specs/
directory views/
README
Multi Class Sinatra Sample Application
======================================

This is a simple application showing how you can mount multiple Sinatra applications into a single process.  It utilizes 
the builtin Rack middleware, URLMap.  I use a simple RackUp file to launch the server, though you can probably do this 
in a single file.

thin -R config.ru start

I've extended this example to show how with a shared base class between 'apps' you can easily share configuration 
options.  You could probably do this with a Mixin, but I haven't tested that.