diff --git a/snippets/htmldjango.snippets b/snippets/htmldjango.snippets index 38f836b..c19e877 100644 --- a/snippets/htmldjango.snippets +++ b/snippets/htmldjango.snippets @@ -50,6 +50,9 @@ snippet if snippet else {% else %} ${1} +snippet elif + {% elif ${1} %} + ${2} snippet ifchanged {% ifchanged %}${1}{% endifchanged %} snippet ifequal diff --git a/snippets/python.snippets b/snippets/python.snippets index dd2e812..508a51b 100644 --- a/snippets/python.snippets +++ b/snippets/python.snippets @@ -51,6 +51,10 @@ snippet property ${3:return self._$1} def fset(self, value): ${4:self._$1 = value} + def fdel(self): + ${5:del self._$1} + return locals() + $1 = property(**$1()) # Ifs snippet if if ${1:condition}: