def get_files(directory)
      Dir["#{directory}/**/{*,.??*}"].
          select {|f| not File.directory? f }.
          select {|f| !f.match(/[\.\/]meta\.yml$/) }.
          map {|f| f[directory.length + 1, f.length] }.
          select {|f| not excluded? f }
    end
def get_files(directory)
      Dir["#{directory}/**/{*,.??*}"].
          select {|f| not File.directory? f }.
          select {|f| !f.match(/[\.\/]meta\.yml$/) }.
          map {|f| f[directory.length + 1, f.length] }.
          select {|f| not excluded? f }
    end
Helper function to search a directory recursively and return a list of files that are renderable.

 @param [String] directory the directory to search
 @return [Array<Usmu::Layout>, Array<Usmu::StaticFile>] Either an array of Layouts or StaticFiles in the directory