Last active
July 5, 2018 05:36
-
-
Save xen/d11451454820554cb61f20dcdad3a4b0 to your computer and use it in GitHub Desktop.
Revisions
-
xen revised this gist
Feb 12, 2018 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -35,6 +35,11 @@ "body": "{{ $0 }}", "description": "Complete Variable", }, "{#": { "prefix": "{#", "body": "{# ${TM_SELECTED_TEXT:${1:text}} #}", "description": "Comment", }, "extends": { "prefix": "extends", "body": "{% extends ${1:\"${2:template}\"} %}", @@ -64,5 +69,10 @@ "prefix": "macro", "body": "{% macro ${1:name}(${2:args}) %}\n\t$3\n{% endmacro %}", "description": "Macro", }, "raw": { "prefix": "raw", "body": "{% raw %}\n${TM_SELECTED_TEXT:${1:text}}\n{% endraw %}", "description": "Raw," } } -
xen revised this gist
Feb 12, 2018 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,20 @@ ], "description": "i18n" }, "gt": { "prefix": "gt", "body": [ "{{ gettext('${TM_SELECTED_TEXT:${1:text}}') }}" ], "description": "Gettext" }, "ngt": { "prefix": "ngt", "body": [ "{{ ngettext('${TM_SELECTED_TEXT:${1:text}}') }}" ], "description": "Ngettext" }, "block": { "prefix": "block", "body": "{% block ${1:name} %}\n\t$2\n{% endblock %}", -
xen revised this gist
Feb 12, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -43,7 +43,7 @@ }, "elif": { "prefix": "elif", "body": "{% elif ${1:expr} %}\n\t", "description": "Elif", }, "macro": { -
xen created this gist
Feb 12, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,54 @@ { "i18n": { "prefix": "_", "body": [ "{{ _('${TM_SELECTED_TEXT:${1:text}}') }}" ], "description": "i18n" }, "block": { "prefix": "block", "body": "{% block ${1:name} %}\n\t$2\n{% endblock %}", "description": "Block", }, "{%": { "prefix": "{%", "body": "{% $0 %}", "description": "Complete Block", }, "{{": { "prefix": "{{", "body": "{{ $0 }}", "description": "Complete Variable", }, "extends": { "prefix": "extends", "body": "{% extends ${1:\"${2:template}\"} %}", "description": "Extends", }, "filter": { "prefix": "filter", "body": "{% filter ${1:filter} %}\n\t$2\n{% endfilter %}", "description": "Filter", }, "for": { "prefix": "for", "body": "{% for ${1:item} in ${2:sequence} %}\n\t$3\n{% endfor %}", "description": "For", }, "if": { "prefix": "if", "body": "{% if ${1:expr} %}\n\t$2\n{% endif %}", "description": "If", }, "elif": { "prefix": "elif", "body": "{% elif ${1:expr} %}\n\t$2\n{% endif %}", "description": "Elif", }, "macro": { "prefix": "macro", "body": "{% macro ${1:name}(${2:args}) %}\n\t$3\n{% endmacro %}", "description": "Macro", } }