Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: render_to change #5

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

proposal: render_to change #5

jerzyk opened this issue Feb 8, 2010 · 1 comment

Comments

@jerzyk
Copy link

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

@montylounge
Copy link
Owner

Sure, let me think about it.

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

No branches or pull requests

2 participants