Browse Source

Update eruby and html snippets, initial css file

- eruby: add submit, stylesheet link, and javascript_include tags
  - html: doctypes, content meta, rss link, icon link
master
jimi 15 years ago
parent
commit
43fc48f2b0
  1. 0
      ftplugin/css/css.xpt.vim
  2. 9
      ftplugin/eruby/eruby.xpt.vim
  3. 26
      ftplugin/html/html.xpt.vim

0
ftplugin/css/css.xpt.vim

9
ftplugin/eruby/eruby.xpt.vim

@ -89,3 +89,12 @@ XPT fsubmit " <%= f.submit...
XPT render_partial synonym=rp " <%= render :partial...
XSET name=Echo('')
<%= render :partial => "`name^" %>
XPT submit_tag " <%= submit_tag...
<%= submit_tag "`label^" %>
XPT stylesheet_link_tag synonym=slt " <%= stylesheet_link_tag...
<%= stylesheet_link_tag `^ %>
XPT javascript_include_tag synonym=jit " <%= javascript_include_tag...
<%= javascript_include_tag `^ %>

26
ftplugin/html/html.xpt.vim

@ -28,14 +28,23 @@ 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 " <!DOCTYPE html>
<!DOCTYPE html>
XPT content5 " <meta charset...
<meta charset="utf-8" />
XPT skel abbr synonym=html|xhtml " xhtml skeleton
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
`:doctype5:^
<html>
<head>
`:title:^
`:contenttype:^`
`more^.^
`:content5:^`
`author^
</head>
<body>
`cursor^
@ -48,6 +57,15 @@ XSET dir=$css_dir/
XSET src=base.css
<link rel="stylesheet" type="text/css" href="`dir^`src^" />
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
XSET name=$_xSnipName.css
`:link( { 'src' : 'name' } ):^