Sha256: 427ac539baecb8fe160c1edea5daa906af53708df5e1d3716aaa8636d81ebdb3
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
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'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
singem-0.3.1 | lib/generators/default/templates/lib/templates.rb.erb |
singem-0.3.0 | lib/generators/default/templates/lib/templates.rb.erb |