Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Improved docs/templates.txt to add example for slice filter. Thanks f…

…or the suggestion, Graham Higgins

git-svn-id: http://code.djangoproject.com/svn/django/trunk@681 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2e8e256fe84ba9ea46eb75ee85f45af5bd296b2a 1 parent 109a915
Adrian Holovaty authored September 24, 2005

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  docs/templates.txt
2  docs/templates.txt
@@ -676,6 +676,8 @@ Built-in filter reference
676 676
     http://diveintopython.org/native_data_types/lists.html#odbchelper.list.slice
677 677
     for an introduction.
678 678
 
  679
+    Example: ``{{ some_list|slice:":2" }}``
  680
+
679 681
 ``slugify``
680 682
     Converts to lowercase, removes non-word characters (alphanumerics and
681 683
     underscores) and converts spaces to hyphens. Also strips leading and

0 notes on commit 2e8e256

Please sign in to comment.
Something went wrong with that request. Please try again.