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:
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
|
||||
|
||||
"""
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue