摘要:
1. Core web framework tornado.web — 包含web框架的大部分主要功能,包含RequestHandler和Application两个重要的类 tornado.httpserver — 一个无阻塞HTTP服务器的实现 tornado.template — 模版系统 to 阅读全文
摘要:
tornado新版(具体版本未知)支持自动转义,比如{{ "<div>" }}不会输出html标签,而是进行转义。 {{ module.test(10) }} 也会进行转义。往往module的调用是输出html的,转义之后就没法使用了。 解决方法有2种: 1. 通过{% autoescape Non 阅读全文