Kelpie.html_element
— Methodhtml_element(name, content...=nothing; kwargs...)
Creates a new EzXML.Node
with name name
, containing content
, and with attributes specified by kwargs
.
Example
julia> import EzXML: prettyprint
+<html/>
diff --git a/dev/index.html b/dev/index.html
index 2087ad0..f3038ec 100644
--- a/dev/index.html
+++ b/dev/index.html
@@ -4,13 +4,13 @@
julia> prettyprint(html())
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
-<html/>source Creates a new Example Creates a new Example Converts each Converts each Kelpie.html_element
— Methodhtml_element(name, content...=nothing; kwargs...)
EzXML.Node
with name name
, containing content
, and with attributes specified by kwargs
.julia> import EzXML: prettyprint
+<html/>
Kelpie.html_element
— Methodhtml_element(name, content...=nothing; kwargs...)
EzXML.Node
with name name
, containing content
, and with attributes specified by kwargs
.julia> import EzXML: prettyprint
julia> prettyprint(html_element("img"; src="https://millironx.com/images/charolette.jpg"))
<img src="https://millironx.com/images/charolette.jpg"/>
julia> prettyprint(html_element("span", "MillironX"; class="label-primary"))
-<span class="label-primary">MillironX</span>
Kelpie.link_or_text!
— Methodlink_or_text!(node, content...)
content
to an EzXML.TextNode
if it isn't already an EzXML.Node
and links it to node
.julia> import EzXML: ElementNode, prettyprint; import Kelpie: link_or_text!
+<span class="label-primary">MillironX</span>
Kelpie.link_or_text!
— Methodlink_or_text!(node, content...)
content
to an EzXML.TextNode
if it isn't already an EzXML.Node
and links it to node
.julia> import EzXML: ElementNode, prettyprint; import Kelpie: link_or_text!
julia> prettyprint(link_or_text!(ElementNode("div"), ElementNode("br")))
<div>
@@ -21,4 +21,4 @@ julia> prettyprint(link_or_text!(ElementNode("h1"), "Kelpie.jl
<h1>Kelpie.jl</h1>
julia> prettyprint(link_or_text!(ElementNode("div"), "The end", ElementNode("hr")))
-<div>The end<hr/></div>
Settings
This document was generated with Documenter.jl version 0.27.15 on Tuesday 5 April 2022. Using Julia version 1.7.2.