def METHOD_NAME(self, context_dict, template_file):
    regex = re.compile(r'[\r]')
    script = regex.sub('', str(template_file))
    context = Context(context_dict)
    template = Template(script)
    return template.render(context)