From 6c8268f50c9ac6bfaba308ce2b76fca491ef3fc9 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 5 Apr 2022 15:33:50 -0500 Subject: [PATCH] Add node to html function Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- src/Kelpie.jl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Kelpie.jl b/src/Kelpie.jl index 109526a..2e46c82 100644 --- a/src/Kelpie.jl +++ b/src/Kelpie.jl @@ -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