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