proposal: render_to change #5

Open
jerzyk opened this Issue Feb 8, 2010 · 1 comment

Comments

Projects
None yet
2 participants

jerzyk commented Feb 8, 2010

at this moment @render_to decorator, requires template name as an argument.

I suppose it will be nice to have an option to leave it empty.

This is useful when a view function is accepting a template as an argument, e.g.:
@render_to
def my_view(request, template='template.html'):
return {}, template

Owner

montylounge commented Mar 9, 2010

Sure, let me think about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment