From 487cedaa33560fbb982292b58980bde309d5b6c7 Mon Sep 17 00:00:00 2001 From: Ricky White Date: Tue, 21 Jul 2026 18:35:45 -0400 Subject: [PATCH] feat: consolidate template comment snippet Move template comment snippet to shared catalog as ptcom, remove jinja-specific ptj-com, and update README reference tables.\n\nCloses #47\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- README.md | 2 +- snippets/jinja-snippets.json | 8 -------- snippets/snippets.json | 9 +++++++++ 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fa6c98d..3d39230 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ All snippets use the `pt` prefix (short for "Python Template"). Here's the compl | `ptvar` | Template variable | `{{ variable }}` | | `ptfilt` | Variable with filter | `{{ variable \| filter }}` | | `ptcode` | Code block tag | `{% code %}` | +| `ptcom` | Comment | `{# comment #}` | | `ptblock` | Block tag | `{% block name %}...{% endblock %}` | | `ptext` | Extends tag | `{% extends 'base.html' %}` | | `ptsup` | Super function | `{{ super() }}` | @@ -108,7 +109,6 @@ All snippets use the `pt` prefix (short for "Python Template"). Here's the compl |--------|-------------|---------| | `ptj-url` | Static file URL | `{{ url_for('static', filename='file.css') }}` | | `ptj-mac` | Macro definition | `{% macro name %}...{% endmacro %}` | -| `ptj-com` | Comment | `{# comment #}` | | `ptj-set` | Set variable | `{% set var = value %}` | ### 🎨 Django-Specific Snippets diff --git a/snippets/jinja-snippets.json b/snippets/jinja-snippets.json index 8204c5a..adb81a5 100644 --- a/snippets/jinja-snippets.json +++ b/snippets/jinja-snippets.json @@ -19,14 +19,6 @@ "description": "Adds macro tags" }, - "Jinja - Comments": { - "scope": "html", - "prefix": "ptj-com", - "body": [ - "{# $0 #}" - ], - "description": "Adds Jinja comment" - }, "Jinja - Set Variable": { "scope": "html", "prefix": "ptj-set", diff --git a/snippets/snippets.json b/snippets/snippets.json index 06a766a..92395f3 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -42,6 +42,15 @@ "description": "Adds code block tags" }, + "Template Comment": { + "scope": "html", + "prefix": "ptcom", + "body": [ + "{# $0 #}" + ], + "description": "Adds template comment tag" + }, + "Template Block Tag": { "scope": "html", "prefix": "ptblock",