From 4e6b96fbcbe0a906ba2f4beee01a07f06fce4567 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Wed, 16 Feb 2011 13:34:35 -0800 Subject: [PATCH] Add linkify to the default template namespace. --- tornado/template.py | 1 + website/templates/documentation.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/tornado/template.py b/tornado/template.py index d18d158b..34dc0689 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -119,6 +119,7 @@ class Template(object): "url_escape": escape.url_escape, "json_encode": escape.json_encode, "squeeze": escape.squeeze, + "linkify": escape.linkify, "datetime": datetime, } namespace.update(kwargs) diff --git a/website/templates/documentation.txt b/website/templates/documentation.txt index b1a903a3..1dd6b663 100644 --- a/website/templates/documentation.txt +++ b/website/templates/documentation.txt @@ -270,6 +270,7 @@ not present). * `url_escape`: alias for `tornado.escape.url_escape` * `json_encode`: alias for `tornado.escape.json_encode` * `squeeze`: alias for `tornado.escape.squeeze` + * `linkify`: alias for `tornado.escape.linkify` * `datetime`: the Python `datetime` module * `handler`: the current `RequestHandler` object * `request`: alias for `handler.request`