Tornado 6.5 Documentation
RequestHandler.write to produce a response. render() loads a Template by name and renders it with the given arguments. write() is used for non-template-based output; it accepts strings, bytes, and dictionaries also be used with any other Python template language, although there is no provision for integrating these systems into RequestHandler.render. Simply render the template to a string and pass it to RequestHandler default, Tornado looks for template files in the same directory as the .py files that refer to them. To put your tem- plate files in a different directory, use the template_path Application setting (or0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
Running and deploying Web framework tornado.web — RequestHandler and Application classes tornado.template — Flexible output generation tornado.routing — Basic routing implementation tornado.escape — Escaping methods Error Handling Redirection Asynchronous handlers Templates and UI Configuring templates Template syntax Security Internationalization UI modules Authentication and security Cookies and signed RequestHandler.write to produce a response. render() loads a Template by name and renders it with the given arguments. write() is used for non-template-based output; it accepts strings, bytes, and dictionaries0 码力 | 437 页 | 405.14 KB | 2 月前3
共 2 条
- 1
相关搜索词