File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
See below for details of all version changes and upgrades.
4
4
5
+ ## [ v1.2]
6
+
7
+ - Added Jinja comment snippet as per [ issue #4 ] ( https://github.com/EndlessTrax/python-template-snippets/issues/4 )
8
+
5
9
## [ v1.1]
6
10
7
11
- Added ` {% include ' ' %} ` snippet for Django templates
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ Prefix | Output
51
51
-------|-------
52
52
ptj-url | {{ url_for('static', filename=' ` * ` ') }}
53
53
ptj-mac | {% macro ` * ` %} {% endmacro %}
54
+ ptj-com | {# ` * ` #}
54
55
55
56
### Django Specific Snippets
56
57
Original file line number Diff line number Diff line change 17
17
" {% endmacro %}"
18
18
],
19
19
"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"
20
29
}
21
30
}
You can’t perform that action at this time.
0 commit comments