      </ul>
  
  Now, create and register the inclusion tag by calling the ``inclusion_tag()``
  method on a ``Library`` object. Following our example, if the above template is
  in a file called ``results.html`` in a directory that's searched by the template
  loader, we'd register the tag like this::
  
      # Here, register is a django.template.Library instance, as before
      register.inclusion_tag('results.html')(show_results)
  
  .. versionchanged:: 1.4
 
</s> remove     :class:`django.template.Template` instance::
 </s> add     :class:`django.template.Template` instance:

    .. code-block:: python </s> remove pages. Those buttons always look the same, but the link targets change depending
on the object being edited -- so they're a perfect case for using a small
template that is filled with details from the current object. (In the admin's
case, this is the ``submit_row`` tag.)
 </s> add pages. Those buttons always look the same, but the link targets change
depending on the object being edited -- so they're a perfect case for using a
small template that is filled with details from the current object. (In the
admin's case, this is the ``submit_row`` tag.) </s> remove in "Writing custom template filters" above. Example::
 </s> add in "Writing custom template filters" above. Example:

.. code-block:: python </s> remove following::
 </s> add following:

.. code-block:: python </s> remove convert an object to its string value before being passed to your function::
 </s> add convert an object to its string value before being passed to your function:

.. code-block:: python
in a file called ``results.html`` in a directory that's searched by the
template loader, we'd register the tag like this:

.. code-block:: python
      </ul>
  
  Now, create and register the inclusion tag by calling the ``inclusion_tag()``
  method on a ``Library`` object. Following our example, if the above template is
in a file called ``results.html`` in a directory that's searched by the
template loader, we'd register the tag like this:

.. code-block:: python
in a file called ``results.html`` in a directory that's searched by the
template loader, we'd register the tag like this:

.. code-block:: python
  
      # Here, register is a django.template.Library instance, as before
      register.inclusion_tag('results.html')(show_results)
  
  .. versionchanged:: 1.4
keep keep keep keep replace 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