Public Member Functions | |
def | __init__ |
def | css_files |
def | current_user |
def | embedded_css |
def | embedded_javascript |
def | html_body |
def | html_head |
def | javascript_files |
def | render |
def | render_string |
Public Attributes | |
handler | |
locale | |
request | |
ui |
A re-usable, modular UI unit on a page. UI modules often execute additional queries, and they can include additional CSS and JavaScript that will be included in the output page, which is automatically inserted on page render.
def tornado.web.UIModule.__init__ | ( | self, | |
handler | |||
) |
Reimplemented in tornado.web.TemplateModule.
def tornado.web.UIModule.css_files | ( | self | ) |
Returns a list of CSS files required by this module.
Reimplemented in tornado.web.TemplateModule.
def tornado.web.UIModule.current_user | ( | self | ) |
def tornado.web.UIModule.embedded_css | ( | self | ) |
Returns a CSS string that will be embedded in the page.
Reimplemented in tornado.web.TemplateModule.
def tornado.web.UIModule.embedded_javascript | ( | self | ) |
Returns a JavaScript string that will be embedded in the page.
Reimplemented in tornado.web.TemplateModule.
def tornado.web.UIModule.html_body | ( | self | ) |
Returns an HTML string that will be put in the <body/> element
Reimplemented in tornado.web.TemplateModule.
def tornado.web.UIModule.html_head | ( | self | ) |
Returns a CSS string that will be put in the <head/> element
Reimplemented in tornado.web.TemplateModule.
def tornado.web.UIModule.javascript_files | ( | self | ) |
Returns a list of JavaScript files required by this module.
Reimplemented in tornado.web.TemplateModule.
def tornado.web.UIModule.render | ( | self, | |
args, | |||
kwargs | |||
) |
Overridden in subclasses to return this module's output.
Reimplemented in tornado.web.TemplateModule, and tornado.web._linkify.
def tornado.web.UIModule.render_string | ( | self, | |
path, | |||
kwargs | |||
) |