Sha256: d44b04263d3b8f5130be7fc4f6356a4e5ce6d50f1ff2f3cc04859ffb60598265
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
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'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
singem-0.2.0 | lib/generators/cucumber/templates/lib/templates.rb.erb |
singem-0.1.2 | lib/generators/cucumber/templates/lib/templates.rb.erb |