##// END OF EJS Templates
hide some functions behind lambdas, so demandload is useful.
Vadim Gelfer -
r1912:b288b4bb default
parent child Browse files
Show More
@@ -213,16 +213,16 b' common_filters = {'
213 213 "date": lambda x: util.datestr(x),
214 214 "domain": domain,
215 215 "escape": lambda x: cgi.escape(x, True),
216 "firstline": (lambda x: x.splitlines(1)[0]),
216 "firstline": lambda x: x.splitlines(1)[0].rstrip('\r\n'),
217 217 "isodate": isodate,
218 218 "obfuscate": obfuscate,
219 "permissions": (lambda x: x and "-rwxr-xr-x" or "-rw-r--r--"),
219 "permissions": lambda x: x and "-rwxr-xr-x" or "-rw-r--r--",
220 220 "person": person,
221 221 "rfc822date": lambda x: util.datestr(x, "%a, %d %b %Y %H:%M:%S"),
222 "short": (lambda x: x[:12]),
222 "short": lambda x: x[:12],
223 223 "strip": lambda x: x.strip(),
224 "urlescape": urllib.quote,
225 "user": util.shortuser,
224 "urlescape": lambda x: urllib.quote(x),
225 "user": lambda x: util.shortuser(x),
226 226 }
227 227
228 228 def templatepath(name=None):
General Comments 0
You need to be logged in to leave comments. Login now