+ "extracss" : doc.extracss.all(),
+ }
+ return render(request, template_name, c)
+
+def css_view(request, slug):
+ cssdoc = CSSDocument.objects.get(slug=slug)
+ if not cssdoc:
+ raise Http404()
+
+ return HttpResponse(cssdoc.content, content_type="text/css")
+