turn off the coffeescript wrapper

This commit is contained in:
John Bintz 2012-03-13 15:19:54 -04:00
parent dbc53a08dc
commit 609b49e64e

View File

@ -22,11 +22,9 @@ module Attentive
nil
end
end
class Server < Rack::Builder
class Server < Rack::Builder
def self.sprockets_env
@sprockets_env ||= Sprockets::EnvironmentWithVendoredGems.new
end
@ -37,7 +35,7 @@ module Attentive
require 'coffee_script'
require 'sass'
Tilt::CoffeeScriptTemplate.default_bare = true
require 'tilt/coffee'
# make sure pygments is ready before starting a new thread
Pygments.highlight("attentive")
@ -58,6 +56,8 @@ module Attentive
env.append_path Attentive.root.join('lib/assets/stylesheets')
env.context_class.send(:include, ::Attentive::Helpers)
Tilt::CoffeeScriptTemplate.default_bare = true
run env
end