Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tools to work with rails partials from emacs
Emacs Lisp
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
partially.el

README.md

partially.el - rails partial tools

I like small, focused libraries. This one provides some functionality around rails partials. Supports erb and haml

partially/visit-partial     - jump to the partial rendered on the current line
NOT DONE!! partially/extract-partial   - extract a partial, dump it in a file, and render it in the current file
NOT DONE!! partially/inline-partial    - fetch the partial rendered on the current line, and replace the render statement with it

Installation:

This relies on a "find-root" function. It defaults to railway-find-root (my standalone rails minor mode), but can easily be customized to anything

(setq partially:rails-root-fn 'rinari-root) ; use rinari function
(setq partially:rails-root-fn 'eproject-root) ; use eproject function
(setq partially:rails-root-fn 'projectile-get-project-root) ; use projectile function
(setq partially:rails-root-fn 'textmate-project-root) ; use textmate.el function
Something went wrong with that request. Please try again.