vim/ultisnips-bullshit/htmldjango.snippets @ 2e41ef790dc8
More
| author | Steve Losh <steve@stevelosh.com> |
|---|---|
| date | Wed, 27 Aug 2025 16:14:19 -0400 |
| parents | (none) |
| children | (none) |
extends html snippet % "Tag" i {% ${1:tag} %} $0 {% end %} endsnippet snippet { "Var" i {{ $1 }}$0 endsnippet snippet include "include" b {% include "${1:foo.html}" %} endsnippet snippet includewith "include with" b {% include "${1:foo.html}" with ${2:var}=${3:val} ${4:only }%} endsnippet snippet with "With" b {% with ${1:var}=${2:val} %} $0 {% end %} endsnippet snippet for "For" b {% for ${1:var} in ${2:val} %} $0 {% endfor %} endsnippet snippet if "If" b {% if ${1:cond} %} $0 {% endif %} endsnippet snippet else "Else" b {% else %} $0 endsnippet snippet elif "Elif" b {% elif ${1:cond} %} $0 endsnippet