Пример #1
0
def html(*children, **attributes):
    return void(
        doctype,
        base.make_node("html")(*children, **attributes))
Пример #2
0
def html(*children, **attributes):
    return void(doctype, base.make_node("html")(*children, **attributes))
Пример #3
0
generate.

Node specs (if they close or not) copied from
http://www.whatwg.org/specs/web-apps/current-work/multipage/
"""

import base

# Reexport the text node.
text = base.text

# Reexport the attrs constructor
attrs = base.attrs

# A void node.
void = base.make_node()

# The base html structure.

doctype = base.make_writer("<!doctype html>")

def html(*children, **attributes):
    return void(
        doctype,
        base.make_node("html")(*children, **attributes))

head = base.make_node("head")
body = base.make_node("body")

# head nodes
Пример #4
0
generate.

Node specs (if they close or not) copied from
http://www.whatwg.org/specs/web-apps/current-work/multipage/
"""

import base

# Reexport the text node.
text = base.text

# Reexport the attrs constructor
attrs = base.attrs

# A void node.
void = base.make_node()

# The base html structure.

doctype = base.make_writer("<!doctype html>")


def html(*children, **attributes):
    return void(doctype, base.make_node("html")(*children, **attributes))


head = base.make_node("head")
body = base.make_node("body")

# head nodes