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

Version Path
singem-0.1.1 lib/generators/cucumber/templates/lib/templates.rb.erb
singem-0.1.0 lib/generators/cucumber/templates/lib/templates.rb.erb
singem-0.0.7 lib/generators/cucumber/templates/lib/templates.rb.erb
singem-0.0.6 lib/generators/cucumber/templates/lib/templates.rb.erb
singem-0.0.5 lib/generators/cucumber/templates/lib/templates.rb.erb