Merge pull request #91 from aschrab/html_div

html: Improve <div> snippet
This commit is contained in:
Holger Rapp 2013-07-20 01:26:48 -07:00
commit ce6ade8fa7

View File

@ -167,7 +167,7 @@ snip.rv = snip.fn and 'Hallo' or 'Nothin'
endsnippet
snippet div "XHTML <div>"
<div`!p snip.rv=' id="' if t[1] else ""`${1:name}`!p snip.rv = '"' if t[1] else ""`>
<div`!p snip.rv=' id="' if t[1] else ""`${1:name}`!p snip.rv = '"' if t[1] else ""``!p snip.rv=' class="' if t[2] else ""`${2:name}`!p snip.rv = '"' if t[2] else ""`>
$0
</div>
endsnippet