parameters: (self, locals=None)
return_statement: return context
docstring: Internal helper function to create a derived context.  This is
          used in situations where the system needs a new context in the same
          template that is independent.
docstring_summary: Internal helper function to create a derived context.  This is
          used in situations where the system needs a new context in the same
          template that is independent.
docstring_tokens: Internal helper function to create a derived context . This is used in situations where the system needs a new context in the same template that is independent .
function: def derived(self, locals=None):
          """Internal helper function to create a derived context.  This is
          used in situations where the system needs a new context in the same
          template that is independent.
          """
          context = new_context(self.environment, self.name, {},
                                self.get_all(), True, None, locals)
          context.eval_ctx = self.eval_ctx
          context.blocks.update((k, list(v)) for k, v in iteritems(self.blocks))
          return context
function_tokens: def derived ( self , locals = None ) : context = new_context ( self . environment , self . name , { } , self . get_all ( ) , True , None , locals ) context . eval_ctx = self . eval_ctx context . blocks . update ( ( k , list ( v ) ) for k , v in iteritems ( self . blocks ) ) return context