django-render-block icon indicating copy to clipboard operation
django-render-block copied to clipboard

Render the content of a specific block tag from a Django template.

Results 16 django-render-block issues
Sort by recently updated
recently updated
newest added

In the rendered template via htmx ajax call, { % perms.foo.change_bar %} will not work, and {{ perms }} returns empty?

I'm not sure if you're aware of a similar project, `django-template-partials`, which allows users to render partial templates by simply appending the partial name to the template name, e.g. `template_name...

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 do `return HttpResponse(render_block_to_string(...))`, would be nice to be able...

In the readme this example code is given: ```python print(render_block_to_string('test3.html', 'block3', {'variable': 'test'})) ``` but the code defines that context is not a `dict` but `Optional[Context] = None`: ```python def...

This pull request adds the `render_block()` function that returns an `HttpResponse` with the block. It also allows to verify the context that was passed to `render_block()` in unit tests. Closes...