From 2e8e256fe84ba9ea46eb75ee85f45af5bd296b2a Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 24 Sep 2005 17:39:20 +0000 Subject: [PATCH] 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 --- docs/templates.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/templates.txt b/docs/templates.txt index e4072b8e44a..09431c1dda2 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