clokep / django-render-block

Render the content of a specific block tag from a Django template.
ISC License
241 stars 23 forks source link

Support multiple levels of extends. #56

Closed clokep closed 5 months ago

clokep commented 5 months ago

Support inheriting over multiple levels of extends, e.g. template C extends template B extends template A and rendering a block from template A.

This heavily simplifies the code to avoid iterating the node list many times, although I'm not 100% confident I haven't broken any edge cases.

Fixes #12 Fixes #16 Fixes #45 Fixes #53

yaakovLowenstein commented 5 months ago

@clokep Thanks for merging this in! When do you expect to release the new version?

clokep commented 5 months ago

@yaakovLowenstein I've released 0.10b1 with the changes. If I don't hear about any issues I'll release a proper version soon.