Implement {% extends %} and {% block %} tags - #299
Draft
LilyFirefly wants to merge 62 commits into
Draft
Conversation
LilyFirefly
force-pushed
the
extends-and-block
branch
from
January 8, 2026 07:51
ebec04c to
e6dc3fb
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
LilyFirefly
force-pushed
the
extends-and-block
branch
from
January 8, 2026 08:06
e6dc3fb to
9bf627a
Compare
Django test suite conformance
ℹ️ Test pass rate changed from
|
LilyFirefly
force-pushed
the
extends-and-block
branch
3 times, most recently
from
January 8, 2026 16:46
1dee976 to
aaa4814
Compare
LilyFirefly
force-pushed
the
extends-and-block
branch
7 times, most recently
from
February 13, 2026 00:06
f4eca86 to
99b8180
Compare
LilyFirefly
force-pushed
the
extends-and-block
branch
3 times, most recently
from
February 21, 2026 20:04
eadec1f to
2bbe43b
Compare
LilyFirefly
force-pushed
the
extends-and-block
branch
4 times, most recently
from
March 9, 2026 18:03
2d4ee80 to
ac4a9e0
Compare
LilyFirefly
force-pushed
the
extends-and-block
branch
3 times, most recently
from
March 21, 2026 16:31
2cd7fdb to
da99a5e
Compare
We deliberately deviate from Django's rendered content here, because Django stores the `Block Node` in the `context`, which ends up rendering as the block's `repr` when treated as a variable. We don't store the `Block` struct in the `context` in the same way, so we avoid shadowing a `context` variable named `block`, which lets us render the user's `block` variable. Matching Django's rendered output here would be prohibitively complicated.
Move the `Extends::render` implementation closer to the Django implementation.
When the `FileSystemLoader` doesn't have its own `dirs` in `args` we need to fallback to the engine's `dirs`.
We had a similar bug to Django #28071, which we caught by running Django's own tests. https://code.djangoproject.com/ticket/28071
LilyFirefly
force-pushed
the
extends-and-block
branch
from
April 18, 2026 20:20
681fb13 to
84e8a51
Compare
Remove the explicit `Context` wrapper, since Django Rusty Templates uses plain dictionaries instead. Replace `assertRaisesMessage` with `assertMessage` to work around formatting issues with the message Django Rusty Templates raises.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.