require 'sinatra/base' module <%= name.camelize %> def self.app @app ||= Rack::Builder.new do use Rack::Session::Cookie, :key => 'rack.session', :path => '/', :expire_after => 2592000, :secret => '<%= ::Digest::SHA1.hexdigest(Time.now.to_s) %>' run <%= name.camelize %>::App end end end require File.dirname(__FILE__)+'/<%= name %>/app'