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

always set default render function (in view directive) so it is never None #283

Closed
faassen opened this Issue Jan 5, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@faassen
Copy link
Member

faassen commented Jan 5, 2015

Instead introduce this render function for the view directive:

def render_view(content, request):
     return Response(content, content_type='text/plain')

This way we can simplify some code, and it makes it more general for template language integration later.

@faassen faassen added this to the 0.10 milestone Jan 5, 2015

@faassen faassen added the enhancement label Jan 5, 2015

faassen added a commit that referenced this issue Jan 5, 2015

@faassen faassen closed this Jan 5, 2015

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