mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Fix #72
This commit is contained in:
parent
77353b5adf
commit
cbdceb26cc
3 changed files with 8 additions and 1 deletions
|
@ -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"
|
2
fixtures/test-app/source/stylesheets/layout.css.sass
Normal file
2
fixtures/test-app/source/stylesheets/layout.css.sass
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
html
|
||||||
|
test: value
|
|
@ -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?
|
||||||
|
|
Loading…
Reference in a new issue