Permalink
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 529 Bytes
#-----------------------------------------------------------------------
#-*- vim: set ft=ruby: -*-
#
# Example rackup file for using stickler as middleware in a larger application
#-----------------------------------------------------------------------
$:.unshift File.expand_path( File.join( File.dirname(__FILE__), "..", "lib" ) )
require 'stickler'
root = File.expand_path( File.join( File.dirname( __FILE__ ), *%w[ .. test data ]))
puts root
use ::Stickler::Middleware::Server, :stickler_root => root
run ::Sinatra::Base