Skip to content

Commit

Permalink
Fix #72
Browse files Browse the repository at this point in the history
  • Loading branch information
tdreyno committed Jul 1, 2011
1 parent 77353b5 commit cbdceb2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions features/scss-support.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ Feature: Support SCSS Syntax
Scenario: Rendering scss
Given the Server is running
When I go to "/stylesheets/site_scss.css"
Then I should see "html"

Scenario: Rendering scss
Given the Server is running
When I go to "/stylesheets/layout.css"
Then I should see "html"
2 changes: 2 additions & 0 deletions fixtures/test-app/source/stylesheets/layout.css.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
html
test: value
2 changes: 1 addition & 1 deletion lib/middleman/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def handle_directory(lookup)
next
end

next if file_source.include?('layout')
next if file_source.include?('layout') && !file_source.include?('.css')

# Skip partials prefixed with an underscore
next unless file_source.gsub(Middleman::Server.root, '').split('/').select { |p| p[0,1] == '_' }.empty?
Expand Down

0 comments on commit cbdceb2

Please sign in to comment.