Skip to content

Instantly share code, notes, and snippets.

@tolmasky
Created March 26, 2009 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tolmasky/86179 to your computer and use it in GitHub Desktop.
Save tolmasky/86179 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'rubygems'
require 'sinatra'
set :app_file, __FILE__
require 'socratic'
configure do
Socratic.load_files Dir.glob(File.join(File.dirname(__FILE__), '..', '**', '*.j'))
end
get('/') { redirect "/#{HOMEPAGE}" }
get '/Classes/:class_name' do
'hello'
#erb(:class, :views_directory => File.join(File.dirname(__FILE__),'..', 'data', 'views', 'objectivej'))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment