Cobweb.CSS
— TypeCSS(content::String)
Wrapper to identify content as CSS. Will be displayed appropriately in text/css and text/html mime types.
Cobweb.Comment
— TypeComment(x)
Inserts into HTML as <!-- $(string(x)) ->
.
Cobweb.IFrame
— TypeIFrame(content; attrs...)
Create an <iframe srcdoc=$content $(attrs...)>
.
Cobweb.Javascript
— TypeJavascript(content::String)
String wrapper to identify content as Javascript. Will be displayed appropriately in text/javascript and text/html mime types.
Cobweb.Node
— TypeNode(tag::Symbol, attrs::OrderedDict{Symbol,String}, children::Vector)
Should not often be used directly. See ?Cobweb.h
.
Cobweb.h
— Methodh(tag, children...; kw...)
h.tag(children...; kw...)
Create an html node with the given tag
, children
, and kw
attributes.
Examples
h.div("child", class="myclass", id="myid")
# <div class="myclass" id="myid">child</div>
h.div."myclass"("content")
# <div class="myclass">content</div>