Sha256: 97a84146f23d677babd2cec379278a425ed4d3167d4737ca4e31555f83686eeb
Contents?: true
Size: 579 Bytes
Versions: 7
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: 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
7 entries across 7 versions & 1 rubygems