Module rattlepy.elements : Rattle.py API Reference¶
HTML element short-handing functions
-
rattlepy.elements.
a
(**kwargs)¶ Create hyper-link and return it. Equivalent to
return Element("a", attributes...)
.
-
rattlepy.elements.
article
(**kwargs)¶ Create article node and return it. Equivalent to
return Element("article", attributes...)
.
-
rattlepy.elements.
body
(**kwargs)¶ Create body node and return it. Equivalent to
return Element("body", attributes...)
.
-
rattlepy.elements.
div
(**kwargs)¶ Create div node and return it. Equivalent to
return Element("div", attributes...)
.
Create footer node and return it. Equivalent to
return Element("footer", attributes...)
.
-
rattlepy.elements.
h1
(**kwargs)¶ Create h1 node and return it. Equivalent to
return Element("h1", attributes...)
.
-
rattlepy.elements.
h2
(**kwargs)¶ Create h2 node and return it. Equivalent to
return Element("h2", attributes...)
.
-
rattlepy.elements.
h3
(**kwargs)¶ Create h3 node and return it. Equivalent to
return Element("h3", attributes...)
.
-
rattlepy.elements.
h4
(**kwargs)¶ Create h4 node and return it. Equivalent to
return Element("h4", attributes...)
.
-
rattlepy.elements.
h5
(**kwargs)¶ Create h5 node and return it. Equivalent to
return Element("h5", attributes...)
.
-
rattlepy.elements.
h6
(**kwargs)¶ Create h6 node and return it. Equivalent to
return Element("h6", attributes...)
.
-
rattlepy.elements.
head
(**kwargs)¶ Create head node and return it. Equivalent to
return Element("head", attributes...)
.
-
rattlepy.elements.
header
(**kwargs)¶ Create header node and return it. Equivalent to
return Element("header", attributes...)
.
-
rattlepy.elements.
hr
(**kwargs)¶ Create hr node and return it. Equivalent to
return Element("hr", attributes...)
.
-
rattlepy.elements.
html
(**kwargs)¶ Create html node and return it. Equivalent to
return Element("html", attributes...)
.
-
rattlepy.elements.
img
(**kwargs)¶ Create img node and return it. Equivalent to
return Element("img", attributes...)
.
-
rattlepy.elements.
li
(**kwargs)¶ Create li node and return it. Equivalent to
return Element("li", attributes...)
.
-
rattlepy.elements.
link
(**kwargs)¶ Create link node and return it. Equivalent to
return Element("link", attributes...)
.
-
rattlepy.elements.
main
(**kwargs)¶ Create main node and return it. Equivalent to
return Element("main", attributes...)
.
-
rattlepy.elements.
meta
(**kwargs)¶ Create meta node and return it. Equivalent to
return Element("meta", attributes...)
.
-
rattlepy.elements.
ol
(**kwargs)¶ Create ol node and return it. Equivalent to
return Element("ol", attributes...)
.
-
rattlepy.elements.
p
(**kwargs)¶ Create paragraph node and return it. Equivalent to
return Element("p", attributes...)
.
-
rattlepy.elements.
script
(**kwargs)¶ Create script node and return it. Equivalent to
return Element("script", attributes...)
.
-
rattlepy.elements.
span
(**kwargs)¶ Create span node and return it. Equivalent to
return Element("span", attributes...)
.
-
rattlepy.elements.
style
(**kwargs)¶ Create style node and return it. Equivalent to
return Element("style", attributes...)
.
-
rattlepy.elements.
title
(**kwargs)¶ Create title node and return it. Equivalent to
return Element("title", attributes...)
.
-
rattlepy.elements.
ul
(**kwargs)¶ Create ul node and return it. Equivalent to
return Element("ul", attributes...)
.
-
rattlepy.elements.
setTitle
(string)¶ Set the document title. This function is as same as
with title(): text(string)
YOU MUST USE IN WITH EXPRESSION:
with setTitle("HogeHoge Page"): pass