'This takes a render call with a context (from Django) and translates
it to a render call on the mako template.'

def render(self, context_instance):

    context_dictionary = {}
    request_context = get_template_request_context()
    if request_context:
        for item in request_context:
            context_dictionary.update(item)
    for item in context_instance:
        context_dictionary.update(item)
    context_dictionary['settings'] = settings
    context_dictionary['EDX_ROOT_URL'] = settings.EDX_ROOT_URL
    context_dictionary['django_context'] = context_instance
    context_dictionary['marketing_link'] = marketing_link
    return super(Template, self).render_unicode(**context_dictionary)
