Sha256: a5ae6c21fcd151566a167d952ebb21a726147fcce90a1d89e79256e6e1df70c9

Contents?: true

Size: 579 Bytes

Versions: 13

Compression:

Stored size: 579 Bytes

Contents

PADRINO_ROOT = File.dirname(__FILE__) unless defined? PADRINO_ROOT
# Remove this comment if you want do some like this: ruby PADRINO_ENV=test app.rb
# 
# require 'rubygems'
# require 'lib/padrino-core'
#

class SimpleDemo < Padrino::Application
  set :reload, true
end

SimpleDemo.controllers do
  get "/" do
    'The magick number is: 45!' # Change only the number!!!
  end
end

## If you want use this as a standalone app uncomment:
# 
# Padrino.mount_core("SimpleDemo")
# Padrino.run! unless Padrino.loaded? # If you enable reloader prevent to re-run the app
# 

Padrino.load!

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
padrino-core-0.8.1 test/fixtures/apps/simple.rb
padrino-core-0.8.0 test/fixtures/apps/simple.rb
padrino-core-0.7.9 test/fixtures/apps/simple.rb
padrino-core-0.7.8 test/fixtures/apps/simple.rb
padrino-core-0.7.7 test/fixtures/apps/simple.rb
padrino-core-0.7.6 test/fixtures/apps/simple.rb
padrino-core-0.7.5 test/fixtures/apps/simple.rb
padrino-core-0.7.4 test/fixtures/apps/simple.rb
padrino-core-0.7.3 test/fixtures/apps/simple.rb
padrino-core-0.7.2 test/fixtures/apps/simple.rb
padrino-core-0.7.1 test/fixtures/apps/simple.rb
padrino-core-0.7.0 test/fixtures/apps/simple.rb
padrino-core-0.6.7 test/fixtures/apps/simple.rb