Add exporting directly to a file
This commit is contained in:
@ -56,8 +56,10 @@ defmodule Outlook.InternalTree do
|
||||
end
|
||||
|
||||
def legacy_export(tree, translation) do
|
||||
Translation.render_translation(tree, translation)
|
||||
content= Translation.render_translation(tree, translation)
|
||||
|> garnish(%{tunits: %{class: "ttrans", "data-ttrans-status": fn n -> Map.get(n, :status) end}})
|
||||
|> Html.render_doc
|
||||
IO.puts "writing export.html to #{File.cwd!}"
|
||||
File.write("export.html", content)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user