Merge pull request #91 from aschrab/html_div
html: Improve <div> snippet
This commit is contained in:
commit
ce6ade8fa7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user