mirror of
https://github.com/MillironX/Kelpie.jl.git
synced 2024-11-14 13:43:08 +00: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...)
|
||||
|
||||
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...)
|
||||
doc = EzXML.HTMLDocumentNode("about:legacy-compat", nothing)
|
||||
|
|
Loading…
Reference in a new issue