(template_source, context_dict)
Renders the given template source with the given values dict.

  Args:
    template_source: (str) The source of a django template.
    context_dict: (dict) The dictionary to use for template evaluation.
  Returns:
    (str) The expanded template.
Renders the given template source with the given values dict.
Renders the given template source with the given values dict .
def _DjangoRenderTemplateSource(template_source, context_dict):
  """Renders the given template source with the given values dict.

  Args:
    template_source: (str) The source of a django template.
    context_dict: (dict) The dictionary to use for template evaluation.
  Returns:
    (str) The expanded template.
  """
  t = DjangoTemplate(template_source)
  ctxt = django_template.Context(context_dict)
  with template_helpers.SetCurrentContext(ctxt):
    return t.render(ctxt)
def _DjangoRenderTemplateSource ( template_source , context_dict ) : t = DjangoTemplate ( template_source ) ctxt = django_template . Context ( context_dict ) with template_helpers . SetCurrentContext ( ctxt ) : return t . render ( ctxt )