def html(*children, **attributes): return void( doctype, base.make_node("html")(*children, **attributes))
def html(*children, **attributes): return void(doctype, base.make_node("html")(*children, **attributes))
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
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