Skip to content

Commit e170a7b

Browse files
committed
Added Jinja comment snippet
1 parent a7797cf commit e170a7b

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
See below for details of all version changes and upgrades.
44

5+
## [v1.2]
6+
7+
- Added Jinja comment snippet as per [issue #4](https://github.com/EndlessTrax/python-template-snippets/issues/4)
8+
59
## [v1.1]
610

711
- Added `{% include ' ' %}` snippet for Django templates

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Prefix | Output
5151
-------|-------
5252
ptj-url | {{ url_for('static', filename=' `*` ') }}
5353
ptj-mac | {% macro `*` %} {% endmacro %}
54+
ptj-com | {# `*` #}
5455

5556
### Django Specific Snippets
5657

snippets/jinja-snippets.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,14 @@
1717
"{% endmacro %}"
1818
],
1919
"description": "Adds macro tags"
20+
},
21+
22+
"Jinja - Comments": {
23+
"scope": "html",
24+
"prefix": "ptj-com",
25+
"body": [
26+
"{# $0 #}"
27+
],
28+
"description": "Adds Jinja comment"
2029
}
2130
}

0 commit comments

Comments
 (0)