feat: add missing core Django template snippets#54
Merged
EndlessTrax merged 6 commits intoJul 22, 2026
Conversation
Copilot
AI
changed the title
[WIP] Add missing core Django template snippets
feat: add missing core Django template snippets
Jul 21, 2026
EndlessTrax
marked this pull request as ready for review
July 21, 2026 23:41
EndlessTrax
approved these changes
Jul 21, 2026
Contributor
There was a problem hiding this comment.
✅ Ready to approve
The changes are low-risk snippet/README additions, with only minor consistency nits called out in review comments.
Note: this review does not count toward required approvals for merging.
Pull request overview
Adds several missing high-frequency Django template snippets to the extension’s Django-specific snippet catalog, and documents them in the README so users can discover the new prefixes.
Changes:
- Added five new Django snippets (
ptd-csrf,ptd-sup,ptd-com,ptd-ver,ptd-trans) tosnippets/django-snippets.json. - Extended the Django-specific snippet table in
README.mdwith the new entries.
File summaries
| File | Description |
|---|---|
| snippets/django-snippets.json | Adds new Django tag snippets for CSRF, block inheritance, comments, verbatim blocks, and translation. |
| README.md | Documents the newly added Django snippet prefixes in the Django snippet reference table. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 4
- Review effort level: Low
Note
Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Several high-frequency Django template tags were absent from
snippets/django-snippets.json, including CSRF tokens, block inheritance, i18n, and JS-framework interop helpers.New snippets added to
django-snippets.jsonptd-csrf{% csrf_token %}ptd-sup{{ block.super }}ptd-com{% comment "..." %}...{% endcomment %}ptd-ver{% verbatim %}...{% endverbatim %}ptd-trans{% translate "..." %}README updated
Django-Specific Snippets reference table extended with the five new entries.