'Render a page title and insert it into the context.
This function takes in a context dict and uses it to render the
page_title variable. It then appends this title to the context using
the \'page_title\' key. If there is already a page_title key defined in
context received then this function will do nothing.'

def render_context_with_title(self, context):

    if ('page_title' not in context):
        con = template.Context(context)
        temp = template.Template(encoding.force_text(self.page_title))
        context['page_title'] = temp.render(con)
    return context
