Home | Trees | Indices | Help |
---|
|
|
|||
|
|||
|
|||
|
|
|||
__revision__ =
|
|||
__id__ =
|
|||
__url__ =
|
|||
register = template.Library() Django template tag/filter registrator |
|||
encoding =
Current charset (sets in Django project's settings) |
|||
debug = False Debug mode (sets in Django project's settings) |
|||
show_value = False Show values on errors (sets in Django project's settings) |
|||
default_value =
|
|||
default_uvalue =
|
|
Display distance of time from current time. Parameter is an accuracy level (deafult is 1). Value must be numeral (i.e. time.time() result) or datetime.datetime (i.e. datetime.datetime.now() result). Examples:{{ some_time|distance_of_time }} {{ some_dtime|distance_of_time:2 }} |
Russian strftime, formats date with given format. Value is a date (supports datetime.date and datetime.datetime), parameter is a format (string). For explainings about format, see documentation for original strftime: http://docs.python.org/lib/module-time.html Examples:{{ some_date|ru_strftime:"%d %B %Y, %A" }} |
Russian strftime with inflected day, formats date with given format (similar to ru_strftime), also inflects day in proper form. Examples:{{ some_date|ru_strftime_inflected:"in %A (%d %B %Y)" |
|
__revision__
|
__url__
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Tue Feb 27 09:42:54 2007 | http://epydoc.sourceforge.net |