diff --git a/ftplugin/html/html.xpt.vim b/ftplugin/html/html.xpt.vim index a270358..3342f1b 100644 --- a/ftplugin/html/html.xpt.vim +++ b/ftplugin/html/html.xpt.vim @@ -6,7 +6,7 @@ let s:f = g:XPTfuncs() XPTvar $js_dir 'javascripts' XPTvar $css_dir 'stylesheets' -XPTvar $jq_ver '1.4.2.min' +XPTvar $jq_ver '1.4.2' XPTvar $empty '' XPT copy_comment hidden @@ -75,9 +75,8 @@ XSET src=print.css XSET media=print XPT jquery abbr synonym=jq " + XPT script " ... +XSET path=Echo('') +match '`path^', :to => '`controller#method^' + +XPT flash " flash[:class]... +flash[:`error^] = "`message^" + +XPT fln abbr " flash.now[:class]... +flash.now[:`error^] = "`message^" + +" RSpec snippets + XPT describe synonym=it alias=loop XSET args="`^" -XPT resp +XPT resp abbr response. -XPT :content " $_xSnipName => "val" -`:key:^ +XPT :content synonym=:cnt " :content => "val" +:content => `^ XPT shd abbr " should ... should `^ @@ -77,3 +97,6 @@ should be_ XPT shnb abbr " should_not be_ should_not be_ + +XPT hvs abbr +have_selector(`^)