You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
196 lines
3.9 KiB
196 lines
3.9 KiB
" Personal additions
|
|
"
|
|
XPTemplate priority=personal
|
|
|
|
let s:f = g:XPTfuncs()
|
|
|
|
XPTvar $js_dir 'javascripts'
|
|
XPTvar $css_dir 'stylesheets'
|
|
XPTvar $jq_ver '1.4.2'
|
|
XPTvar $empty ''
|
|
|
|
XPT cpy_comment hidden
|
|
<!-- © Copyright `strftime("%Y") $author^. All Rights Reserved. -->
|
|
|
|
XPT cpy "
|
|
©`strftime("%Y") $author^ — All Rights Reserved
|
|
|
|
XPT meta
|
|
<meta name="`$_xSnipName^" content="`meta_content^" />
|
|
|
|
XPT description alias=meta " <meta name="description"...
|
|
XSET meta_content=Echo('')
|
|
|
|
XPT author alias=meta " <meta name="author"...
|
|
XSET meta_content=$author
|
|
|
|
XPT copyright alias=meta " <meta name="copyright"...
|
|
XSET meta_content=Copyright `strftime("%Y")^ `$author^, All Rights Reserved
|
|
|
|
XPT google-site-verification alias=meta
|
|
XSET meta_content=Echo('')
|
|
|
|
XPT keywords alias=meta " <meta name="keywords"...
|
|
XSET meta_content=Echo('')
|
|
|
|
XPT doctype " <!DOCTYPE...
|
|
<!DOCTYPE html` `PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"^>
|
|
|
|
XPT doctype5 synonym=doc5 " <!DOCTYPE html>
|
|
<!DOCTYPE html>
|
|
|
|
XPT charset " <meta charset...
|
|
<meta charset="utf-8" />
|
|
|
|
XPT skel synonym=html|xhtml " xhtml skeleton
|
|
XSET more=Echo('')
|
|
`:doctype5:^
|
|
<html lang="en">
|
|
<head>
|
|
`:charset:^
|
|
`:title:^`more^
|
|
</head>
|
|
<body>
|
|
`cursor^
|
|
</body>
|
|
</html>
|
|
`:cpy_comment:^
|
|
|
|
XPT link " <link rel='stylesheet'...
|
|
XSET dir=$css_dir/
|
|
XSET src=base.css
|
|
XSET media=screen
|
|
<link rel="stylesheet" href="`dir^`src^"` media="`media`"^ />
|
|
|
|
XPT alternate " <link rel='alternate'...
|
|
XSET type=application/rss+xml
|
|
XSET url=/feed/
|
|
<link rel="alternate" type="`type^" title="`title^" href="`url^" />
|
|
|
|
XPT icon " <link rel='shortcut icon'...
|
|
XSET url=/favicon.ico
|
|
<link rel="shortcut icon" href="`url^" />
|
|
|
|
XPT reset synonym=fonts|base|grids|layout|screen
|
|
XSET name=$_xSnipName.css
|
|
`:link( { 'src' : 'name' } ):^
|
|
|
|
XPT print alias=link
|
|
XSET src=print.css
|
|
XSET media=print
|
|
|
|
XPT jquery synonym=jq " <script... src="jquery...
|
|
XSET ver=$jq_ver
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/`ver^/jquery.min.js"></script>
|
|
|
|
XPT script " <script... src="...
|
|
XSET dir=$js_dir/
|
|
XSET src=$empty
|
|
<script src="`dir^`src^.js"></script>
|
|
|
|
XPT jplug synonym=jfile|jp|jf alias=script
|
|
|
|
XPT jscript synonym=js
|
|
<script type="text/javascript">
|
|
`cursor^
|
|
</script>
|
|
|
|
XPT tagAttr wrap=content hidden " <$_xSnipName att?>..</$_xSnipName>
|
|
XSET content|ontype=html_cont_ontype()
|
|
XSET att?=Echo('')
|
|
XSET att?|post=Echo(V()=~'\V\^ \$\|att?' ? '' : V())
|
|
<`$_xSnipName^` `att?^>`content^^`content^html_cont_helper()^</`$_xSnipName^>
|
|
|
|
XPT di wrap=cursor " <div id..>\n\n</div>\n<!-- id..
|
|
XSET val=Echo('')
|
|
XSET val|post=Echo(V()=~'\V\^ id=""\$\|val' ? '' : V())
|
|
<div` id="`val`"^>
|
|
`cursor^
|
|
</div>
|
|
<!--`val^ -->
|
|
|
|
XPT h1 abbr alias=_tag
|
|
|
|
XPT h2 abbr alias=_tag
|
|
|
|
XPT h3 abbr alias=_tag
|
|
|
|
XPT h4 abbr alias=_tag
|
|
|
|
XPT h5 abbr alias=_tag
|
|
|
|
XPT h6 abbr alias=_tag
|
|
|
|
XPT span alias=tagAttr
|
|
|
|
XPT div alias=tagAttr
|
|
|
|
XPT p alias=tagAttr
|
|
|
|
XPT tr alias=tagAttr
|
|
|
|
XPT td alias=tagAttr
|
|
|
|
XPT ul alias=tagAttr
|
|
|
|
XPT ol alias=tagAttr
|
|
|
|
XPT dl alias=tagAttr
|
|
|
|
XPT dt alias=tagAttr
|
|
|
|
XPT dd alias=tagAttr
|
|
|
|
XPT br alias=_shorttag
|
|
|
|
XPT li " <li>..</li>...
|
|
XSET content=Echo('')
|
|
<li>`content^</li>`
|
|
`...^
|
|
<li>`content^</li>`
|
|
`...^
|
|
|
|
XPT lia " <li><a href=...
|
|
XSET href=#
|
|
`:li( { 'content' : ':a:' } ):^
|
|
|
|
XPT menu synonym=navigation " <ul id='menu'...
|
|
XSET id=$_xSnipName
|
|
<ul` id="`id`"^>
|
|
`:lia:^
|
|
</ul>
|
|
|
|
XPT a wrap=content " <a href...
|
|
XSET href=#
|
|
XSET content=Echo('')
|
|
<a href="`href^">`content^</a>
|
|
|
|
XPT lie8 wrap=content " <!--[if lt IE 8]>...
|
|
XSET content=Echo('')
|
|
<!--[if lt IE 8]>
|
|
`content^
|
|
<![endif]-->
|
|
|
|
XPT lie9 wrap=content " <!--[if lt IE 9]>...
|
|
XSET content=Echo('')
|
|
<!--[if lt IE 9]>
|
|
`content^
|
|
<![endif]-->
|
|
|
|
"
|
|
" HTML5 Snippets
|
|
"
|
|
|
|
XPT header alias=tagAttr
|
|
|
|
XPT section alias=tagAttr
|
|
|
|
XPT aside alias=tagAttr
|
|
|
|
XPT footer alias=tagAttr
|
|
|
|
XPT nav alias=tagAttr
|
|
|
|
XPT html5shiv synonym=shiv,5shiv
|
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|