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:
Matthias Döring 2011-06-06 18:40:14 +08:00 committed by Thomas Reynolds
parent 5ded17c775
commit 80e120060b

View file

@ -93,7 +93,7 @@ module Middleman
next if file_source.include?('layout')
# Skip partials prefixed with an underscore
next unless file_source.split('/').select { |p| p[0,1] == '_' }.empty?
next unless file_source.gsub(Middleman::Server.root, '').split('/').select { |p| p[0,1] == '_' }.empty?
file_extension = File.extname(file_source)
file_destination = File.join(given_destination, file_source.gsub(source, '.'))