From 609b49e64e10b678200d94ab620d4e152afafde2 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 13 Mar 2012 15:19:54 -0400 Subject: [PATCH] turn off the coffeescript wrapper --- lib/attentive/server.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/attentive/server.rb b/lib/attentive/server.rb index 1341dc4..7803c77 100644 --- a/lib/attentive/server.rb +++ b/lib/attentive/server.rb @@ -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