Ultisnips HTML tweaks

This commit is contained in:
Louis Pilfold 2015-03-04 14:43:15 +00:00
parent 1cf596eaae
commit 902ae7190f

View File

@ -160,14 +160,18 @@ snippet base "XHTML <base>" w
<base href="$1"${2: target="$3"}`!p x(snip)`>
endsnippet
snippet body "XHTML <body>"
<body id="${1:`!p
snip.rv = snip.fn and 'Hallo' or 'Nothin'
`}"${2: onload="$3"}>
snippet body "<body>"
<body>
$0
</body>
endsnippet
snippet div "<div>" w
<div>
$0
</div>
endsnippet
snippet div. "<div> with class" w
<div`!p snip.rv=' class="' if t[1] else ""`${1:name}`!p snip.rv = '"' if t[1] else ""`>
$0