  
  To be a valid tag library, the module must contain a module-level variable
  named ``register`` that is a ``template.Library`` instance, in which all the
  tags and filters are registered. So, near the top of your module, put the
  following::
  
      from django import template
  
      register = template.Library()
  
 
</s> remove Just keep in mind that a ``{% load %}`` statement will load tags/filters for
the given Python module name, not the name of the app.
 </s> add Just keep in mind that a :ttag:`{% load %}<load>` statement will load
tags/filters for the given Python module name, not the name of the app. </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 order for the ``{% load %}`` tag to work. This is a security feature: It allows
you to host Python code for many template libraries on a single host machine
without enabling access to all of them for every Django installation.
 </s> add order for the :ttag:`{% load %}<load>` tag to work. This is a security feature:
It allows you to host Python code for many template libraries on a single host
machine without enabling access to all of them for every Django installation. </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 Continuing the above example, we need to define ``CurrentTimeNode``::
 </s> add Continuing the above example, we need to define ``CurrentTimeNode``:

.. code-block:: python
following:

.. code-block:: python
  
  To be a valid tag library, the module must contain a module-level variable
  named ``register`` that is a ``template.Library`` instance, in which all the
  tags and filters are registered. So, near the top of your module, put the
following:

.. code-block:: python
  
      from django import template
  
      register = template.Library()
  
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