Skip to content

feat: add missing core Django template snippets#54

Merged
EndlessTrax merged 6 commits into
mainfrom
copilot/add-missing-core-django-template-snippets
Jul 22, 2026
Merged

feat: add missing core Django template snippets#54
EndlessTrax merged 6 commits into
mainfrom
copilot/add-missing-core-django-template-snippets

Conversation

Copilot AI commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

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.json

Prefix Output Use case
ptd-csrf {% csrf_token %} Form POST protection
ptd-sup {{ block.super }} Parent block content
ptd-com {% comment "..." %}...{% endcomment %} Multi-line comments
ptd-ver {% verbatim %}...{% endverbatim %} Escape Django rendering for Vue/React
ptd-trans {% translate "..." %} i18n string translation

README updated

Django-Specific Snippets reference table extended with the five new entries.

Copilot AI changed the title [WIP] Add missing core Django template snippets feat: add missing core Django template snippets Jul 21, 2026
Copilot AI requested a review from EndlessTrax July 21, 2026 23:36
@EndlessTrax
EndlessTrax marked this pull request as ready for review July 21, 2026 23:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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) to snippets/django-snippets.json.
  • Extended the Django-specific snippet table in README.md with 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.

Comment thread snippets/django-snippets.json Outdated
Comment thread snippets/django-snippets.json Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
EndlessTrax and others added 4 commits July 21, 2026 20:00
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>
@EndlessTrax
EndlessTrax merged commit 7cab8a3 into main Jul 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add Missing Core Django Template Snippets

3 participants