Merge pull request #165 from oa/master

Updated python property snippet and added elif snippet to htmldjango
This commit is contained in:
Honza Pokorny 2013-01-29 10:00:37 -08:00
commit 22b4f2073b
2 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,9 @@ snippet if
snippet else
{% else %}
${1}
snippet elif
{% elif ${1} %}
${2}
snippet ifchanged
{% ifchanged %}${1}{% endifchanged %}
snippet ifequal

View File

@ -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}: