Open put_open_tag up to numbers and atoms as well as binaries
This commit is contained in:
parent
dd8edc025d
commit
05b11b4bf5
|
@ -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
|
||||
|
|
Reference in a new issue