Sha256: 973ea39cf4bfc7111f9fef67fead033ff6c8477793f36f5a7a01d76fa3c8165a
Contents?: true
Size: 465 Bytes
Versions: 5
Compression:
Stored size: 465 Bytes
Contents
require 'sinatra/base' require 'haml/util' require 'haml/engine' module <%= name.camelize %> def self.app @app ||= Rack::Builder.new do # use Rack::HoptoadNotifier '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'
Version data entries
5 entries across 5 versions & 1 rubygems