def template_paths(recipe_path)
      Dir.glob(Pathname.new(recipe_path).dirname.dirname + "templates" +
        "**/*", File::FNM_DOTMATCH).select do |path|
        File.file?(path)
      end.reject do |path|
        File.basename(path) == ".DS_Store" || File.extname(path) == ".swp"
      end
    end
def template_paths(recipe_path)
      Dir.glob(Pathname.new(recipe_path).dirname.dirname + "templates" +
        "**/*", File::FNM_DOTMATCH).select do |path|
        File.file?(path)
      end.reject do |path|
        File.basename(path) == ".DS_Store" || File.extname(path) == ".swp"
      end
    end
Templates in the current cookbook