def get(self, request, template_id, view_type):
template = get_object_or_404(EnrollmentNotificationEmailTemplate, pk=template_id)<EOL>if view_type not in self.view_type_contexts:<EOL><INDENT>return HttpResponse(status=<NUM_LIT>)<EOL><DEDENT>base_context = self.view_type_contexts[view_type].copy()<EOL>base_context.update({'<STR_LIT>': self.get_user_name(request)})<EOL>return HttpResponse(template.render_html_template(base_context), content_type='<STR_LIT>')<EOL>
Render the given template with the stock data.