Show More
@@ -349,6 +349,11 b' def shortdate(text):' | |||
|
349 | 349 | """Date. Returns a date like "2006-09-18".""" |
|
350 | 350 | return util.shortdate(text) |
|
351 | 351 | |
|
352 | @templatefilter('slashpath') | |
|
353 | def slashpath(path): | |
|
354 | """Any text. Replaces the native path separator with slash.""" | |
|
355 | return util.pconvert(path) | |
|
356 | ||
|
352 | 357 | @templatefilter('splitlines') |
|
353 | 358 | def splitlines(text): |
|
354 | 359 | """Any text. Split text into a list of lines.""" |
General Comments 0
You need to be logged in to leave comments.
Login now