Skip to content

Commit f01d4b5

Browse files
author
Marylou Kunkle
committed
Steev is stupid, and his last patch was b0rked.
The routes for css files was taking the whole filename, not just the name of the file itself. This caused breakage. Now it's fixed.
1 parent 35f31b3 commit f01d4b5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

hackety.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434

3535
#this will be used to make sass work
3636
Dir.glob("#{File.expand_path(File.dirname(__FILE__))}/views/stylesheets/*.sass").each do |sheet|
37-
get "/stylesheets/#{sheet}.css" do
37+
sheet =~ /\/([^\/]*).sass/
38+
sheet_name = $1
39+
get "/stylesheets/#{sheet_name}.css" do
3840
content_type 'text/css', :charset => 'utf-8'
39-
sass :"stylesheets/#{sheet}"
41+
sass :"stylesheets/#{sheet_name}"
4042
end
4143
end
4244

0 commit comments

Comments
 (0)