Sha256: a0620dee19fc3dbd46a655699ef93c55cfffb0f9088db9890927c5020906438b
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 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: 43!' # Change only the number!!! end end Padrino.load! # Replace this with Parino.run! unless Padrino.loaded? if you want to run the app standalone
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
padrino-core-0.6.1 | test/fixtures/apps/simple.rb |