1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
This commit is contained in:
Thomas Reynolds 2011-07-01 10:07:50 -07:00
parent 77353b5adf
commit cbdceb26cc
3 changed files with 8 additions and 1 deletions

View file

@ -5,3 +5,8 @@ Feature: Support SCSS Syntax
Given the Server is running Given the Server is running
When I go to "/stylesheets/site_scss.css" When I go to "/stylesheets/site_scss.css"
Then I should see "html" 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"

View file

@ -0,0 +1,2 @@
html
test: value

View file

@ -106,7 +106,7 @@ module Middleman
next next
end end
next if file_source.include?('layout') next if file_source.include?('layout') && !file_source.include?('.css')
# Skip partials prefixed with an underscore # Skip partials prefixed with an underscore
next unless file_source.gsub(Middleman::Server.root, '').split('/').select { |p| p[0,1] == '_' }.empty? next unless file_source.gsub(Middleman::Server.root, '').split('/').select { |p| p[0,1] == '_' }.empty?