              ...
          </tr>
      {% endfor %}
  
  A naive implementation of ``CycleNode`` might look something like this::
  
      class CycleNode(Node):
          def __init__(self, cyclevars):
              self.cycle_iter = itertools.cycle(cyclevars)
          def render(self, context):
 
</s> remove Let's refactor our ``CycleNode`` implementation to use the ``render_context``::
 </s> add Let's refactor our ``CycleNode`` implementation to use the ``render_context``:

.. code-block:: python </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 outputting it::
 </s> add outputting it:

.. code-block:: python </s> remove class, like so::
 </s> add class, like so:

.. code-block:: python </s> remove template yourself. For example::
 </s> add template yourself. For example:

.. code-block:: python
A naive implementation of ``CycleNode`` might look something like this:

.. code-block:: python
              ...
          </tr>
      {% endfor %}
  
A naive implementation of ``CycleNode`` might look something like this:

.. code-block:: python
  
      class CycleNode(Node):
          def __init__(self, cyclevars):
              self.cycle_iter = itertools.cycle(cyclevars)
          def render(self, context):
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