Add legacy_export function for export to the old outlook

This commit is contained in:
Thelonius Kort
2023-01-19 13:58:49 +01:00
parent fa7671f972
commit 5b6e3c5176

View File

@ -54,4 +54,10 @@ defmodule Outlook.InternalTree do
def render_translation(tree, translation) do
Translation.render_translation(tree, translation)
end
def legacy_export(tree, translation) do
Translation.render_translation(tree, translation)
|> garnish(%{tunits: %{class: "ttrans", "data-ttrans-status": fn n -> Map.get(n, :status) end}})
|> Html.render_doc
end
end