django-render-block
django-render-block copied to clipboard
Render the content of a specific block tag from a Django template.
It is really slow to parse templates everytime you call `render_block` and it is a static information, so you can cache it in memory. I did some benchmarking here and...
Please include these templates and release a new (post) release to PyPI. This is important to be able to reproducibly run the test suite in the Debian package.
I have three templates Template A Template B Template C B inherits from A and C inherits from B. If there is a block in A which I don't specify...
I'm using django-render-block via django-templated-email 2.2.0 on Django 1.11.7 using python 2.7 and I'm running into an issue when using this layout: project/application/templates/templated_email/message_base.txt project/application/templates/templated_email/eng/message-meeting-cancelled.email project/application/templates/templated_email/eng/message-meeting-cancelled-participants.email The idea is to render...
#3 added initial support for JInja2, but did not add support for the `extends` tag. This should be supported (along with using `{{ super() }}`.
[StackOverflow 2687173](http://stackoverflow.com/questions/2687173/django-how-can-i-get-a-block-from-a-template) has an interesting use case using a templatetag that we could easily support: ``` python @register.tag def include_block(parser, token): try: tag_name, include_file, block_name = token.split_contents() except ValueError: raise...
support for block in 3-level parent, override block from multiple parents in nested block
Hello, it would be really helpful to have an installation guide for newcomers looking to use this project. Adding one would make the onboarding process much smoother.
When I render a block which causes an exception to be thrown (eg `NoReverseMatch` from `{% url %}`), I get a nested exception `'NoneType' object has no attribute 'origin'` from...
…tr as None Absolutely love the library. I've recently discovered django-render-block is incompatible with django-slippers. When a template tag is encountered before finding our desired block and that template tag...