  Most filters don't take arguments. In this case, just leave the argument out of
  your function. Example::
  
      def lower(value): # Only one argument.
          "Converts a string into all lowercase"
          return value.lower()
  
  Registering custom filters
  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  
 
</s> remove your function. Example::
 </s> add your function. Example:

.. code-block:: python </s> remove        your filter function and set it to ``True``, like so::
 </s> add        your filter function and set it to ``True``, like so:

       .. code-block:: python </s> remove your ``Library`` instance, to make it available to Django's template language::
 </s> add your ``Library`` instance, to make it available to Django's template language:

.. code-block:: python </s> remove in "Writing custom template filters" above. Example::
 </s> add in "Writing custom template filters" above. Example:

.. code-block:: python </s> remove A couple of things to note about the ``simple_tag`` helper function:
 </s> add A few things to note about the ``simple_tag`` helper function:
        """Converts a string into all lowercase"""
  Most filters don't take arguments. In this case, just leave the argument out of
  your function. Example::
  
      def lower(value): # Only one argument.
        """Converts a string into all lowercase"""
          return value.lower()
  
  Registering custom filters
  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  
keep keep keep keep replace keep keep keep keep keep
 Brushed up the custom template tag 'howto' guide by moving the assignment_tag doc to a more appropriate place (i.e. under the "Setting a variable in the context" section), adding cross references, fixing a few minor inaccuracies and doing a little PEP8 cleanup.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16909 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
docs/howto/custom-template-tags.txt