Created
August 22, 2010 06:30
-
-
Save bts/543423 to your computer and use it in GitHub Desktop.
Revisions
-
bts revised this gist
Aug 22, 2010 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,14 @@ require 'sass' configure do Tilt.register 'scss', Tilt::SassTemplate set :scss, :syntax => :scss end get '/stylesheets/:file.css' do |file| content_type 'text/css', :charset => 'utf-8' # no #scss method is defined (and #sass only looks for .sass files) # we must call render ourself: render :scss, file.to_sym, :layout => false, :views => './public/stylesheets' end -
bts revised this gist
Aug 22, 2010 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
bts revised this gist
Aug 22, 2010 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ require 'sass/plugin/rack' Sass::Plugin.options[:template_location] = 'public/stylesheets' use Sass::Plugin::Rack -
bts renamed this gist
Aug 22, 2010 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
bts revised this gist
Aug 22, 2010 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ require 'sass' get '/stylesheets/:file.css' do |file| content_type 'text/css', :charset => 'utf-8' sass(file.to_sym, :template_location => 'public/stylesheets') end -
bts created this gist
Aug 22, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ require 'sass' get '/stylesheet.css' do content_type 'text/css', :charset => 'utf-8' sass(:stylesheet) end