Skip to content

Commit 74a16c5

Browse files
author
RWhiteDev
committed
More snippets added
1 parent 0bf0164 commit 74a16c5

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

snippets/django-snippets.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"Django - Url Tags": {
3+
"scope": "html",
4+
"prefix": "pt-durl",
5+
"body": [
6+
"{% url '$1' $2%}$0"
7+
],
8+
"description": "Adds Django URL block"
9+
},
10+
11+
"Django - Load tags": {
12+
"scope": "html",
13+
"prefix": "pt-dload",
14+
"body": [
15+
"{% load $1 %}$0"
16+
],
17+
"description": "Adds Load Block"
18+
},
19+
20+
"Django - Static File": {
21+
"scope": "html",
22+
"prefix": "pt-dstat",
23+
"body": [
24+
"{% static '$1' %}$0"
25+
],
26+
"description": "Adds Static File Block"
27+
}
28+
}

snippets/snippets.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
"description": "Adds variable tags"
2525
},
2626

27+
"Template Variable with Filter": {
28+
"scope": "html",
29+
"prefix": "ptfilt",
30+
"body": [
31+
"{{ $1 | $2 }}$0"
32+
],
33+
"description": "Adds variable tags with filter"
34+
},
35+
2736
"Template Code Block": {
2837
"scope": "html",
2938
"prefix": "ptcode",

0 commit comments

Comments
 (0)