-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
What do you think of from render_block import render_block_to_response
?
#59
Comments
This is what I was looking for, @clokep I can help submitting a PR if you accept this idea, from render_block.shortcuts import render_block_to_response
def view(request):
...
return render_block_to_response(request, template_name, block_name, context) What do you think ? |
I think that would be OK, it should probably be named ( If you're going to PR, please include tests too. |
@clokep / @robertpro I agree that it should probably be |
Could you make the |
@jillesme do you think you can implement this soon? If not, then I am willing to create a PR for this issue. |
Hi @gogognome please go for it. I do not have time right now. |
Hi @clokep,
Lovely package you created! It's wonderful to use with HTMX.
What do you think of exporting
render_block_to_response
? I often doreturn HttpResponse(render_block_to_string(...))
, would be nice to be able to just dorender_block_to_response
with the same args. I've created a helper utility in my own codebase, but I think other people might benefit from that too.The text was updated successfully, but these errors were encountered: