      {% current_time "%Y-%M-%d %I:%M %p" as my_current_time %}
      <p>The current time is {{ my_current_time }}.</p>
  
  To do that, you'll need to refactor both the compilation function and ``Node``
  class, like so::
  
      class CurrentTimeNode3(template.Node):
          def __init__(self, format_string, var_name):
              self.format_string = format_string
              self.var_name = var_name
 
</s> remove object::
 </s> add object:

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

.. code-block:: python </s> remove     Any variable set in the context will only be available in the same ``block``
    of the template in which it was assigned. This behavior is intentional;
    it provides a scope for variables so that they don't conflict with
    context in other blocks.
 </s> add     Any variable set in the context will only be available in the same
    ``block`` of the template in which it was assigned. This behavior is
    intentional; it provides a scope for variables so that they don't conflict
    with context in other blocks. </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.
class, like so:

.. code-block:: python
      {% current_time "%Y-%M-%d %I:%M %p" as my_current_time %}
      <p>The current time is {{ my_current_time }}.</p>
  
  To do that, you'll need to refactor both the compilation function and ``Node``
class, like so:

.. code-block:: python
  
      class CurrentTimeNode3(template.Node):
          def __init__(self, format_string, var_name):
              self.format_string = format_string
              self.var_name = var_name
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