id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 21522,Add rendering decorators,anonymous,nobody,"A lot of frameworks now allow you to do : {{{ @something def hello(request): return {} }}} We could apply that to django : {{{ @render() def hello(request): return 'Hello' }}} Returns a HttpRequest('Hello') {{{ @render('template.html') def hello(request): return {} }}} Is an alternative syntax for return render('template.html', {}). It's more declarative, and removes the boiler plate code from the function body where only the view logic now appears. Possiblities : {{{ @render('template.xml', mimetype='application/xml') def hello(request): return {} @render('template.html', code=404) def hello(request): return {} # this will return HttpRequest(json.loads({}), mimetype='application/json')) @render(json=True) def hello(request): return {} }}} ",New feature,closed,Core (Other),1.6,Normal,wontfix,,,Unreviewed,0,0,0,0,1,0