mirror of
https://github.com/MillironX/Kelpie.jl.git
synced 2025-01-15 09:19:07 -05:00
Add doctest for html function
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
6152004356
commit
8a86c309de
1 changed files with 11 additions and 0 deletions
|
@ -131,6 +131,17 @@ end #function
|
||||||
html(content...=nothing; kwargs...)
|
html(content...=nothing; kwargs...)
|
||||||
|
|
||||||
Creates a new HTML document filled with `content`.
|
Creates a new HTML document filled with `content`.
|
||||||
|
|
||||||
|
# Example
|
||||||
|
|
||||||
|
```jldoctest
|
||||||
|
julia> import EzXML: prettyprint
|
||||||
|
|
||||||
|
julia> prettyprint(html())
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<!DOCTYPE html SYSTEM "about:legacy-compat">
|
||||||
|
<html/>
|
||||||
|
```
|
||||||
"""
|
"""
|
||||||
function html(content...=nothing; kwargs...)
|
function html(content...=nothing; kwargs...)
|
||||||
doc = EzXML.HTMLDocumentNode("about:legacy-compat", nothing)
|
doc = EzXML.HTMLDocumentNode("about:legacy-compat", nothing)
|
||||||
|
|
Loading…
Reference in a new issue