      Signal that this template extends a parent template.
  
      This tag may be used in two ways: ``{% extends "base" %}`` (with quotes)
      uses the literal value "base" as the name of the parent template to extend,
      or ``{% extends variable %}`` uses the value of ``variable`` as the name
      of the parent template to extend.
      """
      bits = token.contents.split()
      if len(bits) != 2:
          raise TemplateSyntaxError, "'%s' takes one argument" % bits[0]
      parent_name, parent_name_expr = None, None
 
</s> remove This tag may be used in two ways: ``{% extends "base.html" %}`` (with quotes)
uses the literal value "base.html" as the name of the parent template to
extend, or ``{% extends variable %}`` uses the value of ``variable`` as the
name of the parent template to extend.
 </s> add This tag may be used in two ways: 

   * ``{% extends "base.html" %}`` (with quotes) uses the literal value
     "base.html" as the name of the parent template to extend

   * ``{% extends variable %}`` uses the value of ``variable`` as either the
     name of the parent template to extend (if it evaluates to a string,) or
     as the parent tempate itelf (if it evaluates to a Template object).
    or ``{% extends variable %}`` uses the value of ``variable`` as either the
    name of the parent template to extend (if it evaluates to a string,) or as
    the parent tempate itelf (if it evaluates to a Template object).
      Signal that this template extends a parent template.
  
      This tag may be used in two ways: ``{% extends "base" %}`` (with quotes)
      uses the literal value "base" as the name of the parent template to extend,
    or ``{% extends variable %}`` uses the value of ``variable`` as either the
    name of the parent template to extend (if it evaluates to a string,) or as
    the parent tempate itelf (if it evaluates to a Template object).
    or ``{% extends variable %}`` uses the value of ``variable`` as either the
    name of the parent template to extend (if it evaluates to a string,) or as
    the parent tempate itelf (if it evaluates to a Template object).
      """
      bits = token.contents.split()
      if len(bits) != 2:
          raise TemplateSyntaxError, "'%s' takes one argument" % bits[0]
      parent_name, parent_name_expr = None, None
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #1650: the {% extends %} tag now can extend a Template object passed into the context.  Thanks, clelland@gmail.com.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3465 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/template/loader_tags.py