require 'sinatra/base' require 'haml/util' require 'haml/engine' module <%= name.camelize %> def self.app @app ||= Rack::Builder.new do # use Rack::Hoptoad 'mysecretkey' # 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'