Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() }}` |
Expand All @@ -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
Expand Down
8 changes: 0 additions & 8 deletions snippets/jinja-snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down