More unasked for commentary from the peanut gallery. ;)

16 views
Skip to first unread message

Charles M Magid

unread,
Dec 19, 2011, 6:42:01 PM12/19/11
to smart-snippet and YASnippet
Good Day,

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

João Távora

unread,
Dec 19, 2011, 8:50:11 PM12/19/11
to smart-...@googlegroups.com
`yas/rails-root` can use but shouldn't need rinari. If you find that
it does, and can reproduce this situation clealy with a bullet-proof
"emacs -Q" reproduction recipe, report this as a bug.

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

Reply all
Reply to author
Forward
0 new messages