def __init__(self, title='<STR_LIT>', doctype='<STR_LIT>', request=None):
super(document, self).__init__()<EOL>self.doctype    = doctype<EOL>self.head       = super(document, self).add(tags.head())<EOL>self.body       = super(document, self).add(tags.body())<EOL>self.title_node = self.head.add(tags.title(title))<EOL>self._entry     = self.body<EOL>
Creates a new document instance. Accepts `title`, `doctype`, and `request` keyword arguments.