I would love to see some of the restrictions loosened up for those of
us who do not use rinari.
Things like the following can just check for extensions (.rhtml
or .html.erb ) instead of verifying the view directory.
(yas/define-condition-cache
yas/rails-view-p
"Non-nil if the current buffer is a rails view."
(and (yas/rails-root)
(string-match "app/views/" default-directory)))
Best,
::Charles
Also bear in mind that rails views do not have to be embedded ruby
(erb), they can be haml as well for example. Rails views are stored
canonically in app/views!
Thanks,
João
> --
> You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.
> To post to this group, send email to smart-...@googlegroups.com.
> To unsubscribe from this group, send email to smart-snippe...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/smart-snippet?hl=en.
>
--
João Távora