diff --git a/src/Kelpie.jl b/src/Kelpie.jl index fc8882a..582d2fc 100644 --- a/src/Kelpie.jl +++ b/src/Kelpie.jl @@ -2,6 +2,8 @@ module Kelpie import EzXML: link!, EzXML + +export html export html_element """ @@ -75,4 +77,15 @@ function html_element(name::AbstractString, content=nothing; kwargs...) return el end #function +""" + html(content) + +Creates a new HTML document filled with `content`. +""" +function html(content) + doc = EzXML.HTMLDocumentNode(nothing, nothing) + link_or_text!(doc, content) + return doc +end #function + end #module