lib/middleman/server.rb in beans-middleman-1.0.5 vs lib/middleman/server.rb in beans-middleman-1.0.6

- old
+ new

@@ -117,10 +117,10 @@ path << settings.index_file if path.match(%r{/$}) path.gsub!(%r{^/}, '') old_layout = settings.current_layout settings.layout(options[:layout]) if !options[:layout].nil? - result = render(path, :layout => settings.fetch_layout_path.to_sym) + result = render(path, :layout => path.include?('stylesheets') ? false : settings.fetch_layout_path.to_sym) settings.layout(old_layout) if result content_type mime_type(File.extname(path)), :charset => 'utf-8' status 200