Merge pull request #165 from oa/master
Updated python property snippet and added elif snippet to htmldjango
This commit is contained in:
commit
22b4f2073b
@ -50,6 +50,9 @@ snippet if
|
|||||||
snippet else
|
snippet else
|
||||||
{% else %}
|
{% else %}
|
||||||
${1}
|
${1}
|
||||||
|
snippet elif
|
||||||
|
{% elif ${1} %}
|
||||||
|
${2}
|
||||||
snippet ifchanged
|
snippet ifchanged
|
||||||
{% ifchanged %}${1}{% endifchanged %}
|
{% ifchanged %}${1}{% endifchanged %}
|
||||||
snippet ifequal
|
snippet ifequal
|
||||||
|
@ -51,6 +51,10 @@ snippet property
|
|||||||
${3:return self._$1}
|
${3:return self._$1}
|
||||||
def fset(self, value):
|
def fset(self, value):
|
||||||
${4:self._$1 = value}
|
${4:self._$1 = value}
|
||||||
|
def fdel(self):
|
||||||
|
${5:del self._$1}
|
||||||
|
return locals()
|
||||||
|
$1 = property(**$1())
|
||||||
# Ifs
|
# Ifs
|
||||||
snippet if
|
snippet if
|
||||||
if ${1:condition}:
|
if ${1:condition}:
|
||||||
|
Loading…
Reference in New Issue
Block a user