rattlepy.elementsモジュール : Rattle.py APIリファレンス¶
HTML element short-handing functions
-
rattlepy.elements.
a
(**kwargs)¶ リンクを作成して返します。
return Element("a", attributes...)
と同じです。
-
rattlepy.elements.
article
(**kwargs)¶ articleノードを作成して返します。
return Element("article", attributes... )
と同じです。
-
rattlepy.elements.
body
(**kwargs)¶ bodyノードを作成して返します。
return Element("body", attributes...)
と同じです。
-
rattlepy.elements.
div
(**kwargs)¶ divノードを作成して返します。
return Element("div", attributes...)
と同じです。
footerノードを作成して返します。
return Element("footer", attributes...)
と同じです。
-
rattlepy.elements.
h1
(**kwargs)¶ h1ノードを作成して返します。
return Element("h1", attributes...)
と同じです。
-
rattlepy.elements.
h2
(**kwargs)¶ h2ノードを作成して返します。
return Element("h2", attributes...)
と同じです。
-
rattlepy.elements.
h3
(**kwargs)¶ h3ノードを作成して返します。
return Element("h3", attributes...)
と同じです。
-
rattlepy.elements.
h4
(**kwargs)¶ h4ノードを作成して返します。
return Element("h4", attributes...)
と同じです。
-
rattlepy.elements.
h5
(**kwargs)¶ h5ノードを作成して返します。
return Element("h5", attributes...)
と同じです。
-
rattlepy.elements.
h6
(**kwargs)¶ h6ノードを作成して返します。
return Element("h6", attributes...)
と同じです。
-
rattlepy.elements.
head
(**kwargs)¶ headノードを作成して返します。
return Element("head", attributes...)
と同じです。
-
rattlepy.elements.
header
(**kwargs)¶ headerノードを作成して返します。
return Element("header", attributes...)
と同じです。
-
rattlepy.elements.
hr
(**kwargs)¶ hrノードを作成して返します。
return Element("hr", attributes...)
と同じです。
-
rattlepy.elements.
html
(**kwargs)¶ htmlノードを作成して返します。
return Element("html", attributes...)
と同じです。
-
rattlepy.elements.
img
(**kwargs)¶ imgノードを作成して返します。
return Element("img", attributes...)
と同じです。
-
rattlepy.elements.
li
(**kwargs)¶ liノードを作成して返します。
return Element("li", attributes...)
と同じです。
-
rattlepy.elements.
link
(**kwargs)¶ linkノードを作成して返します。
return Element("link", attributes...)
と同じです。
-
rattlepy.elements.
main
(**kwargs)¶ mainノードを作成して返します。
return Element("main", attributes...)
と同じです。
-
rattlepy.elements.
meta
(**kwargs)¶ metaノードを作成して返します。
return Element("meta", attributes...)
と同じです。
-
rattlepy.elements.
ol
(**kwargs)¶ olノードを作成して返します。
return Element("ol", attributes...)
と同じです。
-
rattlepy.elements.
p
(**kwargs)¶ paragraphノードを作成して返します。
return Element("p", attributes...)
と同じです。
-
rattlepy.elements.
script
(**kwargs)¶ scriptノードを作成して返します。
return Element("script", attributes...)
と同じです。
-
rattlepy.elements.
span
(**kwargs)¶ spanノードを作成して返します。
return Element("span", attributes...)
と同じです。
-
rattlepy.elements.
style
(**kwargs)¶ styleノードを作成して返します。
return Element("style", attributes...)
と同じです。
-
rattlepy.elements.
title
(**kwargs)¶ titleノードを作成して返します。
return Element("title", attributes...)
と同じです。
-
rattlepy.elements.
ul
(**kwargs)¶ ulノードを作成して返します。
return Element("ul", attributes...)
と同じです。
-
rattlepy.elements.
setTitle
(string)¶ ドキュメントのタイトルを設定します。
この関数は以下のコードと同等です:
with title(): text(string)
この関数はwith文の中で使う必要があります:
with setTitle("HogeHoge Page"): pass