class Middleman::GlobAction
def execute!
def execute! Dir[File.join(source, @config[:glob])].each do |path| file_name = path.gsub(SHARED_SERVER.views + "/", "") if file_name == "layouts" false elsif file_name.include?("layout.") && file_name.split(".").length == 2 false else next if File.directory?(path) handle_path(path) true end end end