  
  .. versionchanged:: 1.4
  
      Alternatively it is possible to register the inclusion tag using a
      :class:`django.template.Template` instance::
  
          from django.template.loader import get_template
          t = get_template('results.html')
          register.inclusion_tag(t)(show_results)
  
 
</s> remove As always, decorator syntax works as well, so we could have written::
 </s> add As always, decorator syntax works as well, so we could have written:

.. code-block:: python </s> remove in a file called ``results.html`` in a directory that's searched by the template
loader, we'd register the tag like this::
 </s> add 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 </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 </s> remove As with filter registration, it is also possible to use this as a decorator::
 </s> add As with filter registration, it is also possible to use this as a decorator:

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

.. code-block:: python
    :class:`django.template.Template` instance:

    .. code-block:: python
  
  .. versionchanged:: 1.4
  
      Alternatively it is possible to register the inclusion tag using a
    :class:`django.template.Template` instance:

    .. code-block:: python
  
          from django.template.loader import get_template
          t = get_template('results.html')
          register.inclusion_tag(t)(show_results)
  
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