def default_doc_constructor(request, **kwargs):
    doc = HTML5.new_document()
    for name, val in kwargs.items():
        setattr(doc, name, val)
    container = doc.add_section("container")
    header = container.add_section("container", id="header")
    wrapper = container.add_section("container", id="wrapper")
    content = wrapper.add_section("container", id="content")
    navigation = container.add_section("container", id="navigation")
    sidebar = container.add_section("container", id="sidebar")
    footer = container.add_section("container", id="footer")
    doc.header = header
    doc.content = content
    doc.nav = navigation
    doc.sidebar = sidebar
    doc.footer = footer
    return doc
Example document constructor.
dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/framework.py/default_doc_constructor