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