Sha256: 4bf4bd8bba92fe8455da42193e815980e76940b751867534f28205e171b0934b
Contents?: true
Size: 576 Bytes
Versions: 2
Compression:
Stored size: 576 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: 39!' # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
padrino-core-0.9.9 | test/fixtures/apps/simple.rb |
padrino-core-0.9.7 | test/fixtures/apps/simple.rb |