Sha256: 032eab1955aaa1e98f3c2b1e25174dfafa97b44844d3d48595641b4086c45b78
Contents?: true
Size: 579 Bytes
Versions: 4
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: 12!' # 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
4 entries across 4 versions & 1 rubygems