Ben Darnell
c9af9a7224
Remove redundant uses of @asynchronous with @gen.coroutine.
2014-01-02 20:51:59 -05:00
Ben Darnell
974c229c8b
Update chat demo to be more exemplary.
...
Use gen.coroutine in auth handler (but not in wait_for_messages
because it makes things less clear and we don't have good cancellation
support). No more mixin. Python 3 compatible.
2013-03-16 00:52:04 -04:00
Ben Darnell
5c7d6d3edc
Autoescaping is now the default, so remove the explicit setting in chatdemo.
2013-03-03 12:18:34 -05:00
Ben Darnell
920f96db6b
Use distinct cookie names across all the demo apps.
2013-03-03 12:16:03 -05:00
Taylor Hughes
35b432fee2
Make it obvious to anyone reading copy-pasted example code that the cookie secret is not suitable for production use.
2012-08-31 23:47:11 -07:00
Ben Darnell
1b5adf99e4
Add on_connection_close hook to chat demo to clean up after closed connections.
...
Closes #354 .
2011-09-08 22:51:45 -07:00
Ben Darnell
5664bf0781
Add a Template UIModule, allowing templates to be called with keyword
...
arguments instead of inheriting the caller's namespace with {% include %}.
2011-06-05 15:41:25 -07:00
Ben Darnell
ce3e1dedaf
Introduce {% module %} syntax for calling UIModules.
...
Add linkify and xsrf_form_html as default modules.
2011-06-05 13:47:02 -07:00
Ben Darnell
6a85be4577
Add autoescape application setting and convert chatdemo to use it.
2011-05-30 19:03:54 -07:00
Jon Parise
cce8218a03
tornado.httpserver is unused in this scope
2010-12-13 10:28:09 -08:00
Ben Darnell
a853850e26
Add convenience method Application.listen(port) so most apps don't need
...
to explicitly touch HTTPServer.
2010-11-15 21:15:32 -08:00
Paul Buchheit
f732f98063
add a linkify() function for converting text to html with link detection. Also changed xhtml_escape to not convert return value to utf8, since pages should be assembed in unicode and not utf8 encoded until they are ready to write().
2010-09-30 14:41:13 -07:00
Ben Darnell
40ce72c1c6
Replace all tabs with spaces.
2010-03-17 14:59:17 -07:00
Casey
c59cf2ab06
make logout link work
2009-09-14 11:08:27 -07:00
Bret Taylor
91d90b2ff1
Get rid of unnecessary/inconsistent mixin
2009-09-14 09:37:36 -07:00
Casey
cdcfb26316
make sign out clickable, ignoring automatic redirect for now
2009-09-10 14:39:23 -07:00
Casey
e197a479be
escape more
2009-09-10 10:47:19 -07:00
Bret Taylor
2afa973493
Move Tornado project to Github
2009-09-10 00:50:51 -07:00