diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-27 07:28:51 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-27 07:28:51 +0000 |
| commit | 515ae9c1289d9bbe447e0dad196e8c35d9724804 (patch) | |
| tree | 0092a480a2173455d83553abea2f633797ce4313 /docs | |
| parent | fc102791d8585c28040589e10d864550338919fd (diff) | |
Fixed ReST error in docs/templates_python.txt. Thanks, EABinGA
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/templates_python.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/templates_python.txt b/docs/templates_python.txt index 790b580bd6..904844fa25 100644 --- a/docs/templates_python.txt +++ b/docs/templates_python.txt @@ -411,13 +411,12 @@ Although the Django template language comes with several default tags and filters, you might want to write your own. It's easy to do. First, create a ``templatetags`` package in the appropriate Django app's -package. It should be on the same level as ``models``, ``views``, etc. For +package. It should be on the same level as ``models``, ``views.py``, etc. For example:: polls/ models/ templatetags/ - views/ Add two files to the ``templatetags`` package: an ``__init__.py`` file and a file that will contain your custom tag/filter definitions. The name of the @@ -650,7 +649,7 @@ The ``tag()`` method takes two arguments: function as a string). As with filter registration, it is also possible to use this as a decorator, in -Python 2.4 and above: +Python 2.4 and above:: @register.tag(name="current_time") def do_current_time(parser, token): |
