From a242096700046293c22e3f6ef8666d4b6f454b57 Mon Sep 17 00:00:00 2001 From: Marco Milanesi Date: Fri, 11 May 2018 22:29:04 +0200 Subject: [PATCH] Add HTML renderer --- lib/forecastr/renderer/html.ex | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/forecastr/renderer/html.ex diff --git a/lib/forecastr/renderer/html.ex b/lib/forecastr/renderer/html.ex new file mode 100644 index 0000000..37f1ac5 --- /dev/null +++ b/lib/forecastr/renderer/html.ex @@ -0,0 +1,14 @@ +defmodule Forecastr.Renderer.HTML do + @moduledoc """ + HTML renderer + + Takes advantage of the ASCII renderer and ascii art placeholders to render + HTML + """ + + @spec render(map()) :: list() + def render(map) do + map + |> Forecastr.Renderer.ASCII.render(:html) + end +end