Sha256: 2405bc9ae7a34e2f1074b02901c5cef8fe730b2185313bbb3dd7421cae62875b
Contents?: true
Size: 821 Bytes
Versions: 3
Compression:
Stored size: 821 Bytes
Contents
#!/usr/bin/env ruby require "sinatra/base" require "sinatra/reloader" module Symbiote class App < Sinatra::Base register Sinatra::Reloader get '/' do @title = "Home" erb :index end get '/webobject' do @title = "Web Objects" erb :webobject end post '/webobject' do redirect '/webobject' end get '/comics' do @title = "Comic Heroes and Villains" erb :comics end get '/forms' do @title = "Generic Forms" erb :forms end get '/stardate' do @title = "Stardates" erb :stardate end get '/stardate_calc' do @title = "Stardate Calculators" erb :stardate_calc, :layout => :layout_small end end end if __FILE__ == $0 Symbiote::App.run! port: 9292 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
symbiont-0.2.1 | app/app.rb |
symbiont-0.2.0 | app/app.rb |
symbiont-0.1.9 | app/app.rb |