  
  The second step in writing custom tags is to define a ``Node`` subclass that
  has a ``render()`` method.
  
  Continuing the above example, we need to define ``CurrentTimeNode``::
  
      from django import template
      import datetime
      class CurrentTimeNode(template.Node):
          def __init__(self, format_string):
 
</s> remove ``render_context`` behaves like a Python dictionary, and should be used to store
``Node`` state between invocations of the ``render`` method.
 </s> add ``render_context`` behaves like a Python dictionary, and should be used to
store ``Node`` state between invocations of the ``render`` method. </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 outputting it::
 </s> add outputting it:

.. code-block:: python </s> remove for the template fragment. Example::
 </s> add for the template fragment. Example:

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

.. code-block:: python
Continuing the above example, we need to define ``CurrentTimeNode``:

.. code-block:: python
  
  The second step in writing custom tags is to define a ``Node`` subclass that
  has a ``render()`` method.
  
Continuing the above example, we need to define ``CurrentTimeNode``:

.. code-block:: python
  
      from django import template
      import datetime
      class CurrentTimeNode(template.Node):
          def __init__(self, format_string):
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