##// END OF EJS Templates
help: better explanations for some of the template filters...
Dirkjan Ochtman -
r7806:6d0cf2a2 default
parent child Browse files
Show More
@@ -309,15 +309,20 b' PYTHONPATH::'
309 309
310 310 - addbreaks: Any text. Add an XHTML "<br />" tag before the end of
311 311 every line except the last.
312 - age: Date. Returns a human-readable age for the given date.
312 - age: Date. Returns a human-readable date/time difference between
313 the given date/time and the current date/time.
313 314 - basename: Any text. Treats the text as a path, and returns the
314 basename. For example, "foo/bar/baz" becomes "baz".
315 - date: Date. Returns a date in a Unix date command format, including
315 last component of the path after splitting by the path
316 separator (ignoring trailing seprators). For example,
317 "foo/bar/baz" becomes "baz" and "foo/bar//" becomes "bar".
318 - date: Date. Returns a date in a Unix date format, including
316 319 the timezone: "Mon Sep 04 15:13:13 2006 0700".
317 320 - domain: Any text. Finds the first string that looks like an email
318 321 address, and extracts just the domain component.
322 Example: 'User <user@example.com>' becomes 'example.com'.
319 323 - email: Any text. Extracts the first string that looks like an email
320 address.
324 address. Example: 'User <user@example.com>' becomes
325 'user@example.com'.
321 326 - escape: Any text. Replaces the special XML/XHTML characters "&",
322 327 "<" and ">" with XML entities.
323 328 - fill68: Any text. Wraps the text to fit in 68 columns.
@@ -333,7 +338,7 b' PYTHONPATH::'
333 338 in email headers.
334 339 - short: Changeset hash. Returns the short form of a changeset hash,
335 340 i.e. a 12-byte hexadecimal string.
336 - shortdate: Date. Returns a date like "2006-09-04".
341 - shortdate: Date. Returns a date like "2006-09-18".
337 342 - strip: Any text. Strips all leading and trailing whitespace.
338 343 - tabindent: Any text. Returns the text, with every line except the
339 344 first starting with a tab character.
General Comments 0
You need to be logged in to leave comments. Login now