示例#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