@ -2,23 +2,50 @@
"
"
XPTemplate priority = personal +
XPTemplate priority = personal +
XPT key hidden " :key => val
XPT def " def .. end
XSET action = Echo ( ' ' )
def `method ^`
`action ^
end
" eRuby attribute snippets
XPT key hidden " $_xSnipName => val
XSET val = Echo ( '' )
XSET val = Echo ( '' )
`$_xSnipName ^ = > `val ^
`$_xSnipName ^ = > `val ^
XPT :cols synonym = :rows | :size | :maxsize | :null | :url
XPT :cols synonym = :rows | :size | :maxsize | :null | :url " $_xSnipName => val
`:key :^
`:key :^
XPT :object synonym = :collection | :locals | :layout | :method
XPT :object synonym = :collection | :locals | :layout | :method " $_xSnipName => val
`:key :^
`:key :^
XPT :id synonym = :class | :alt | :title | :action | :controller
XPT :id synonym = :class | :alt | :title | :action | :controller " $_xSnipName => 'val'
XSET str = '`val^'
XSET str = '`val^'
`:key ( { 'val' : 'str' }) :^
`:key ( { 'val' : 'str' }) :^
XPT :selected synonym = :multipart
XPT :selected synonym = :multipart " $_xSnipName => true
XSET bool = true `^
XSET bool = true `^
`:key ( { 'val' : 'bool' }) :^
`:key ( { 'val' : 'bool' }) :^
XPT :html alias = key
XPT :html alias = key
XSET val = { `html ^ }
XSET val = { `html ^ }
" RSpec snippets
XPT loop " loop do .. end
`loop ^` `arg ^ do
`cursor ^
end
XPT describe " describe .. do
XSET name = describe
`:loop ( { 'loop' : 'name' }) :^
XPT it " it .. do
XSET name = it
`:loop ( { 'loop' : 'name' }) :^
XPT :content " $_xSnipName => " val "
XSET val = "`str^"
`:key :^