Skip to content

Commit d761336

Browse files
author
RWhiteDev
committed
Seperated snippets into different files depending on type: Django, Jinja, or General.
1 parent 1766d8f commit d761336

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

snippets/django-snippets.json

Whitespace-only changes.

snippets/jinja-snippets.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"Jinja - Link Static File": {
3+
"scope": "html",
4+
"prefix": "pt-jurl",
5+
"body": [
6+
"{{ url_for('static', filename='$1') }}$0"
7+
],
8+
"description": "Link static file with Jinja"
9+
}
10+
11+
}

snippets/snippets.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"New Jinja HTML Template": {
2+
"New HTML Template": {
33
"scope": "html",
44
"prefix": "ptnew",
55
"body": [
@@ -15,7 +15,7 @@
1515
"description": "Creates the base Jinja / Django template for a new HTML file"
1616
},
1717

18-
"Jinja Variable": {
18+
"Jinja / Django Variable": {
1919
"scope": "html",
2020
"prefix": "ptvar",
2121
"body": [
@@ -24,22 +24,13 @@
2424
"description": "Opens variable tags"
2525
},
2626

27-
"Jinja Code Block": {
27+
"Template Code Block": {
2828
"scope": "html",
2929
"prefix": "ptcode",
3030
"body": [
3131
"{% $1 %}$0"
3232
],
3333
"description": "Opens code block tags"
34-
},
35-
36-
"Jinja - Link Static File": {
37-
"scope": "html",
38-
"prefix": "pt-jurl",
39-
"body": [
40-
"{{ url_for('static', filename='$1') }}$0"
41-
],
42-
"description": "Link static file with Jinja"
4334
}
4435

4536
}

0 commit comments

Comments
 (0)