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:
parent
33cddd980b
commit
6c8268f50c
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue