summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimeon Simeonov2018-06-17 13:02:27 +0200
committerSimeon Simeonov2018-06-17 13:02:27 +0200
commitb39d777fd5e620eeb81733ae12292813233b529a (patch)
tree62ac28c8056119fce4b8b261a568973517b4f89a
parent3ae91e4233bf442f08eb2dbef72d95798b3870bf (diff)
Simplify Django-snippets. Add django_var
-rw-r--r--.emacs.d/snippets/html-mode/django_for6
-rw-r--r--.emacs.d/snippets/html-mode/django_if4
-rw-r--r--.emacs.d/snippets/html-mode/django_ife2
-rw-r--r--.emacs.d/snippets/html-mode/django_translate2
-rw-r--r--.emacs.d/snippets/html-mode/django_url2
-rw-r--r--.emacs.d/snippets/html-mode/django_var5
6 files changed, 14 insertions, 7 deletions
diff --git a/.emacs.d/snippets/html-mode/django_for b/.emacs.d/snippets/html-mode/django_for
index 7982638..41ad68f 100644
--- a/.emacs.d/snippets/html-mode/django_for
+++ b/.emacs.d/snippets/html-mode/django_for
@@ -1,5 +1,7 @@
1# -*- mode: snippet -*- 1# -*- mode: snippet -*-
2#name: django-for 2#name: django-for
3#key: dj_for 3#key: for
4# -- 4# --
5{% for ${1:condition} %}$0{% endfor %} \ No newline at end of file 5{%for ${1:condition} %}
6$0
7{%endfor%} \ No newline at end of file
diff --git a/.emacs.d/snippets/html-mode/django_if b/.emacs.d/snippets/html-mode/django_if
index a356c35..6ad562d 100644
--- a/.emacs.d/snippets/html-mode/django_if
+++ b/.emacs.d/snippets/html-mode/django_if
@@ -1,5 +1,5 @@
1# -*- mode: snippet -*- 1# -*- mode: snippet -*-
2#name: django-if 2#name: django-if
3#key: dj_if 3#key: if
4# -- 4# --
5{% if ${1:condition} %}$0{% endif %} \ No newline at end of file 5{%if ${1:condition} %}$0{%endif%} \ No newline at end of file
diff --git a/.emacs.d/snippets/html-mode/django_ife b/.emacs.d/snippets/html-mode/django_ife
index 8b896b1..7d64b19 100644
--- a/.emacs.d/snippets/html-mode/django_ife
+++ b/.emacs.d/snippets/html-mode/django_ife
@@ -1,5 +1,5 @@
1# -*- mode: snippet -*- 1# -*- mode: snippet -*-
2#name: django-ifelse 2#name: django-ifelse
3#key: dj_ife 3#key: ife
4# -- 4# --
5{%if ${1:condition} %}$0{%else%}{%endif%} \ No newline at end of file 5{%if ${1:condition} %}$0{%else%}{%endif%} \ No newline at end of file
diff --git a/.emacs.d/snippets/html-mode/django_translate b/.emacs.d/snippets/html-mode/django_translate
index 9f11b2e..22dbc0c 100644
--- a/.emacs.d/snippets/html-mode/django_translate
+++ b/.emacs.d/snippets/html-mode/django_translate
@@ -1,5 +1,5 @@
1# -*- mode: snippet -*- 1# -*- mode: snippet -*-
2#name: django-translate 2#name: django-translate
3#key: dj_tr 3#key: tr
4# -- 4# --
5{%trans "$0" %} \ No newline at end of file 5{%trans "$0" %} \ No newline at end of file
diff --git a/.emacs.d/snippets/html-mode/django_url b/.emacs.d/snippets/html-mode/django_url
index 846b8fb..525385f 100644
--- a/.emacs.d/snippets/html-mode/django_url
+++ b/.emacs.d/snippets/html-mode/django_url
@@ -1,5 +1,5 @@
1# -*- mode: snippet -*- 1# -*- mode: snippet -*-
2#name: django-url 2#name: django-url
3#key: dj_u 3#key: url
4# -- 4# --
5{%url $0 %} \ No newline at end of file 5{%url $0 %} \ No newline at end of file
diff --git a/.emacs.d/snippets/html-mode/django_var b/.emacs.d/snippets/html-mode/django_var
new file mode 100644
index 0000000..90a685f
--- /dev/null
+++ b/.emacs.d/snippets/html-mode/django_var
@@ -0,0 +1,5 @@
1# -*- mode: snippet -*-
2#name: django-variable
3#key: v
4# --
5{{ $0 }} \ No newline at end of file