Completion/templating snippets for XPTemplate vim plugin
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Initial jquery, ruby, and eruby snippets
- jquery ($ and drf) definitions
- ruby (key => value) shortcuts
- eruby basics: if, else, unless, for, image tags, link tags
content_for, form_for, form elements, if flash, render partial
15 years ago |
|
"
"
XPTemplate priority=personal+
XPT key hidden " :key => val
XSET val=Echo('')
`$_xSnipName^ => `val^
XPT :cols synonym=:rows|:size|:maxsize|:null|:url
`:key:^
XPT :object synonym=:collection|:locals|:layout|:method
`:key:^
XPT :id synonym=:class|:alt|:title|:action|:controller
XSET str='`val^'
`:key({ 'val' : 'str' }):^
XPT :selected synonym=:multipart
XSET bool=true`^
`:key({ 'val' : 'bool' }):^
XPT :html alias=key
XSET val={ `html^ }
|