          new_context = Context({'var': obj}, autoescape=context.autoescape)
          # ... Do something with new_context ...
  
  This is not a very common situation, but it's useful if you're rendering a
  template yourself. For example::
  
      def render(self, context):
          t = template.loader.get_template('small_fragment.html')
          return t.render(Context({'var': obj}, autoescape=context.autoescape))
  
 
</s> remove ``autoescape`` that you can use for this purpose. For example::
 </s> add ``autoescape`` that you can use for this purpose. For example:

.. code-block:: python </s> remove A naive implementation of ``CycleNode`` might look something like this::
 </s> add A naive implementation of ``CycleNode`` might look something like this:

.. code-block:: python </s> remove       for them using code like::
 </s> add       for them using code like:

      .. code-block:: python </s> remove pages. Those buttons always look the same, but the link targets change depending
on the object being edited -- so they're a perfect case for using a small
template that is filled with details from the current object. (In the admin's
case, this is the ``submit_row`` tag.)
 </s> add pages. Those buttons always look the same, but the link targets change
depending on the object being edited -- so they're a perfect case for using a
small template that is filled with details from the current object. (In the
admin's case, this is the ``submit_row`` tag.)
template yourself. For example:

.. code-block:: python
          new_context = Context({'var': obj}, autoescape=context.autoescape)
          # ... Do something with new_context ...
  
  This is not a very common situation, but it's useful if you're rendering a
template yourself. For example:

.. code-block:: python
  
      def render(self, context):
          t = template.loader.get_template('small_fragment.html')
          return t.render(Context({'var': obj}, autoescape=context.autoescape))
  
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