def render(self, *args, **kwargs):
r = []<EOL>if self.doctype:<EOL><INDENT>r.append(self.doctype)<EOL>r.append('<STR_LIT:\n>')<EOL><DEDENT>r.append(super(document, self).render(*args, **kwargs))<EOL>return u'<STR_LIT>'.join(r)<EOL>
Creates a <title> tag if not present and renders the DOCTYPE and tag tree.