Skip to content
This repository
Browse code

Version bump and deprecate .render()

  • Loading branch information...
commit 844acb57b87ae7ee3e9d7a835fd2c79a292fadfb 1 parent 83632c0
Dave Dash authored October 24, 2011
18  jingo/__init__.py
@@ -9,11 +9,10 @@
9 9
 from django.template.context import get_standard_processors
10 10
 from django.template.loader import BaseLoader
11 11
 from django.utils.importlib import import_module
12  
-from django.utils.translation import trans_real
13 12
 
14 13
 import jinja2
15 14
 
16  
-VERSION = (0, 3)
  15
+VERSION = (0, 4)
17 16
 __version__ = '.'.join(map(str, VERSION))
18 17
 
19 18
 log = logging.getLogger('jingo')
@@ -67,18 +66,11 @@ def get_env():
67 66
 
68 67
 def render(request, template, context=None, **kwargs):
69 68
     """
70  
-    Shortcut like Django's ``render_to_response``, but better.
71  
-
72  
-    Minimal usage, with only a request object and a template name::
73  
-
74  
-        return jingo.render(request, 'template.html')
75  
-
76  
-    With template context and keywords passed to
77  
-    :class:`django.http.HttpResponse`::
78  
-
79  
-        return jingo.render(request, 'template.html',
80  
-                            {'some_var': 42}, status=209)
  69
+    .. deprecated:: 0.4
  70
+        use ``django.shortcuts.render()``
81 71
     """
  72
+    log.warning('jingo.render() has been deprecated.  '
  73
+                'Use django.shortcuts.render().')
82 74
     rendered = render_to_string(request, template, context)
83 75
     return http.HttpResponse(rendered, **kwargs)
84 76
 
2  setup.py
@@ -3,7 +3,7 @@
3 3
 
4 4
 setup(
5 5
     name='jingo',
6  
-    version='0.3',
  6
+    version='0.4',
7 7
     description='An adapter for using Jinja2 templates with Django.',
8 8
     long_description=open('README.rst').read(),
9 9
     author='Jeff Balogh',

0 notes on commit 844acb5

Please sign in to comment.
Something went wrong with that request. Please try again.