1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
sinatra/lib/sinatra.rb
Ryan Tomayko 0324732179 Minor tweaks to use_in_file_templates! auto loading
1. Don't add the sinatra lib dir to $: on each reload.
2. Don't remove sinatra.rb from $LOADED_FEATURES unless we're
   reloading.
2009-01-17 17:10:10 -08:00

8 lines
190 B
Ruby

libdir = File.dirname(__FILE__)
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
require 'sinatra/base'
require 'sinatra/main'
require 'sinatra/compat'
use_in_file_templates!