Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 470 Bytes
defmodule Sitemap.Adapters.String do
# alias Sitemap.Location
# @behaviour Sitemap.Adapters.Behaviour
# def write(name, data) do
# path = Location.path(name)
# if Regex.match?(~r/.gz$/, path) do
# writefile(StringIO.open!(path, [:write, :compressed]), data)
# else
# writefile(StringIO.open!(path, [:write]), data)
# end
# end
# defp writefile(stream, data) do
# IO.write stream, data
# StringIO.close stream
# end
end
You can’t perform that action at this time.