summaryrefslogtreecommitdiffstats
path: root/coffin/shortcuts
diff options
context:
space:
mode:
Diffstat (limited to 'coffin/shortcuts')
-rw-r--r--coffin/shortcuts/.___init__.pybin187 -> 0 bytes
-rw-r--r--coffin/shortcuts/__init__.py25
2 files changed, 0 insertions, 25 deletions
diff --git a/coffin/shortcuts/.___init__.py b/coffin/shortcuts/.___init__.py
deleted file mode 100644
index c21832ed..00000000
--- a/coffin/shortcuts/.___init__.py
+++ /dev/null
Binary files differ
diff --git a/coffin/shortcuts/__init__.py b/coffin/shortcuts/__init__.py
deleted file mode 100644
index c882dfcd..00000000
--- a/coffin/shortcuts/__init__.py
+++ /dev/null
@@ -1,25 +0,0 @@
-from django.http import HttpResponse
-
-# Merge with original namespace so user
-# doesn't have to import twice.
-from django.shortcuts import *
-
-
-__all__ = ('render_to_string', 'render_to_response',)
-
-
-# Is within ``template.loader`` as per Django specification -
-# but I think it fits very well here.
-from coffin.template.loader import render_to_string
-
-
-def render_to_response(template_name, dictionary=None, context_instance=None,
- mimetype=None):
- """
- :param template_name: Filename of the template to get or a sequence of
- filenames to try, in order.
- :param dictionary: Rendering context for the template.
- :returns: A response object with the evaluated template as a payload.
- """
- rendered = render_to_string(template_name, dictionary, context_instance)
- return HttpResponse(rendered, mimetype=mimetype)