class Middleman::SourceWatcher
def path_to_source_file(path, directory, type, destination_dir)
def path_to_source_file(path, directory, type, destination_dir) types = Set.new([type]) types << :no_frontmatter unless @frontmatter types << :binary if @binary relative_path = path.relative_path_from(directory) relative_path = File.join(destination_dir, relative_path) if destination_dir types << :no_frontmatter if partial?(relative_path.to_s) ::Middleman::SourceFile.new(Pathname(relative_path), path, directory, types, 0) end