1
0
Fork 0
mirror of https://github.com/MillironX/Kelpie.jl.git synced 2024-11-14 13:43:08 +00: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
"""
html(content...)
html(content...=nothing; kwargs...)
Creates a new HTML document filled with `content`.
"""
function html(content...)
function html(content...=nothing; kwargs...)
doc = EzXML.HTMLDocumentNode("about:legacy-compat", nothing)
link_or_text!(doc, content...)
node = html_element("html", content...; kwargs...)
link!(doc, node)
return doc
end #function