summaryrefslogtreecommitdiff
path: root/docs/templates.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-09-24 17:39:20 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-09-24 17:39:20 +0000
commit2e8e256fe84ba9ea46eb75ee85f45af5bd296b2a (patch)
treec497825e51ddcc03688fa4eaddf1754fd8f390bb /docs/templates.txt
parent109a915775f1ae5a2045007fcfac2b1b7e480d53 (diff)
Improved docs/templates.txt to add example for slice filter. Thanks for the suggestion, Graham Higgins
git-svn-id: http://code.djangoproject.com/svn/django/trunk@681 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/templates.txt')
-rw-r--r--docs/templates.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/templates.txt b/docs/templates.txt
index e4072b8e44..09431c1dda 100644
--- a/docs/templates.txt
+++ b/docs/templates.txt
@@ -676,6 +676,8 @@ Built-in filter reference
http://diveintopython.org/native_data_types/lists.html#odbchelper.list.slice
for an introduction.
+ Example: ``{{ some_list|slice:":2" }}``
+
``slugify``
Converts to lowercase, removes non-word characters (alphanumerics and
underscores) and converts spaces to hyphens. Also strips leading and