Sha256: 3a42b6e65fa696cfa95d70f1b464381356dfe6e40ef58aa7ab9b13449362288c

Contents?: true

Size: 587 Bytes

Versions: 3

Compression:

Stored size: 587 Bytes

Contents

#!/usr/bin/env ruby

%w(rubygems sinatra/base darkext darkext/sinatra).each { |lib| require lib }
Dir['lib/*.rb'].each { |file| load file }

load 'local_options.rb' if File.exists?('local_options.rb')

class <%= app_name_fixed %>Site < Sinatra::Default
  set(:app_file, File.expand_path(__FILE__))
  register Sinatra::DarkHelpers
  <% for lib in %w(Options Helpers Error Get Post Put Delete) %>
  register Sinatra::<%= app_name_fixed %><%= lib %><% end %>
  register Sinatra::LocalOptions unless defined?(Sinatra::LocalOptions).nil?
end

<%= app_name_fixed %>Site.run! if __FILE__ == $0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
darkhelmet-darkext-0.10.0 app_generators/templates/app.rb
darkhelmet-darkext-0.11.0 app_generators/templates/app.rb
darkhelmet-darkext-0.11.1 app_generators/templates/app.rb