forked from iambibhas/vscode-django-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed all jinja references and added django references
- Loading branch information
Bibhas
committed
Aug 29, 2016
1 parent
e2e3dc5
commit e977007
Showing
12 changed files
with
197 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% extends "layout.html" %} | ||
{% block body %} | ||
<ul> | ||
{% for user in users %} | ||
<li><a href="{% url 'user-profile' user.username %}">{{ user.username }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock body %} |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,54 @@ | ||
{ | ||
"name": "jinja", | ||
"version": "0.0.7", | ||
"publisher": "wholroyd", | ||
"name": "django-html", | ||
"version": "1.0.0", | ||
"publisher": "bibhasdn", | ||
"author": { | ||
"name": "William Holroyd" | ||
"name": "Bibhas Debnath" | ||
}, | ||
"license": "MIT", | ||
"icon": "icon.png", | ||
"description": "Jinja template language support for Visual Studio Code", | ||
"displayName": "Jinja", | ||
"description": "Django template language support for Visual Studio Code", | ||
"displayName": "Django Template", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/wholroyd/vscode-jinja.git" | ||
"url": "https://github.com/iambibhas/vscode-django-template.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/wholroyd/vscode-jinja/issues" | ||
"url": "https://github.com/iambibhas/vscode-django-template/issues" | ||
}, | ||
"categories": [ | ||
"Languages", | ||
"Snippets", | ||
"Linters" | ||
], | ||
"engines": { | ||
"vscode": "0.10.x" | ||
"vscode": "^1.0.0" | ||
}, | ||
"contributes": { | ||
"languages": [ | ||
{ | ||
"id": "jinja", | ||
"aliases": [ | ||
"Jinja" | ||
], | ||
"extensions": [".j2"], | ||
"configuration": "./jinja.configuration.json" | ||
}, | ||
{ | ||
"id": "html", | ||
"aliases": [ | ||
"Jinja", | ||
"Django Template", | ||
"HTML" | ||
], | ||
"extensions": [".j2", ".html", ".htm"], | ||
"extensions": [".html", ".htm"], | ||
"configuration": "./jinja-html.configuration.json" | ||
}, | ||
{ | ||
"id": "yaml", | ||
"aliases": [ | ||
"Jinja", | ||
"YAML" | ||
], | ||
"extensions": [".j2", ".eyaml", ".eyml", ".yaml", ".yml", ".sls"], | ||
"configuration": "./jinja-yaml.configuration.json" | ||
} | ||
], | ||
"grammars": [ | ||
{ | ||
"language": "jinja", | ||
"scopeName": "source.jinja", | ||
"path": "./syntaxes/jinja.json" | ||
}, | ||
{ | ||
"language": "html", | ||
"scopeName": "text.html.jinja", | ||
"path": "./syntaxes/jinja-html.json" | ||
}, | ||
{ | ||
"language": "yaml", | ||
"scopeName": "text.yaml.jinja", | ||
"path": "./syntaxes/jinja-yaml.json" | ||
"scopeName": "text.html.django", | ||
"path": "./syntaxes/django-html.json" | ||
} | ||
] | ||
], | ||
"snippets": [ | ||
{ | ||
"language": "html", | ||
"scopeName": "text.html.django", | ||
"path": "./snippets/django-snippets.json" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"Comment": { | ||
"prefix": "comment", | ||
"description": "Comment block", | ||
"body": [ | ||
"{% comment \"$1\" %}", | ||
"$2", | ||
"{% endcomment %}" | ||
] | ||
}, | ||
"For loop": { | ||
"prefix": "for", | ||
"description": "For loop", | ||
"body": [ | ||
"{% for $1 in $2 %}", | ||
"$3", | ||
"{% endfor %}" | ||
] | ||
}, | ||
"For-Empty loop": { | ||
"prefix": "forempty", | ||
"description": "For-Empty loop", | ||
"body": [ | ||
"{% for $1 in $2 %}", | ||
"$3", | ||
"{% empty %}", | ||
"$4", | ||
"{% endfor %}" | ||
] | ||
}, | ||
"If condition": { | ||
"prefix": "if", | ||
"description": "IF condition", | ||
"body": [ | ||
"{% if $1 %}", | ||
"$2", | ||
"{% else %}", | ||
"{% endif %}" | ||
] | ||
}, | ||
"Include": { | ||
"prefix": "include", | ||
"description": "Include other templates", | ||
"body": [ | ||
"{% include \"$1\" %}" | ||
] | ||
}, | ||
"Lorem": { | ||
"prefix": "lorem", | ||
"description": "Generate Lorem Text Block", | ||
"body": [ | ||
"{% lorem ${how_many_paragraphs} %}" | ||
] | ||
}, | ||
"Spaceless": { | ||
"prefix": "spaceless", | ||
"description": "Removes whitespaces in between", | ||
"body": [ | ||
"{% spaceless %}", | ||
"$1", | ||
"{% endspaceless %}" | ||
] | ||
}, | ||
"Template Block": { | ||
"prefix": "block", | ||
"description": "Creates a block", | ||
"body": [ | ||
"{% block $1 %}", | ||
"$2", | ||
"{% endblock $1 %}" | ||
] | ||
}, | ||
"URL": { | ||
"prefix": "url", | ||
"description": "URL tag", | ||
"body": [ | ||
"{% url '${some-url-name}' ${arg} %}" | ||
] | ||
}, | ||
"With": { | ||
"prefix": "with", | ||
"description": "With block", | ||
"body": [ | ||
"{% with ${local_var}=${context_var} %}", | ||
"$1", | ||
"{% endwith %}" | ||
] | ||
} | ||
} |
Oops, something went wrong.