Open put_open_tag up to numbers and atoms as well as binaries

This commit is contained in:
Mitchell Hanberg 2019-07-01 21:58:50 -04:00
parent dd8edc025d
commit 05b11b4bf5

View file

@ -5,7 +5,7 @@ defmodule Dsl.Utils do
put_buffer(buff, "<#{el}#{compile_attrs(attrs)}>")
end
def put_open_tag(buff, el, content) when is_binary(content) do
def put_open_tag(buff, el, content) when is_binary(content) or is_number(content) or is_atom(content) do
put_buffer(buff, "<#{el}>")
put_buffer(buff, content)
end