1
0
Fork 0
mirror of https://github.com/MillironX/Kelpie.jl.git synced 2025-01-15 09:19:07 -05:00

Add <html> node to html function

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2022-04-05 15:33:50 -05:00
parent 33cddd980b
commit 6c8268f50c
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -126,13 +126,14 @@ function html_element(name::AbstractString, content...=nothing; kwargs...)
end #function end #function
""" """
html(content...) html(content...=nothing; kwargs...)
Creates a new HTML document filled with `content`. Creates a new HTML document filled with `content`.
""" """
function html(content...) function html(content...=nothing; kwargs...)
doc = EzXML.HTMLDocumentNode("about:legacy-compat", nothing) doc = EzXML.HTMLDocumentNode("about:legacy-compat", nothing)
link_or_text!(doc, content...) node = html_element("html", content...; kwargs...)
link!(doc, node)
return doc return doc
end #function end #function