-
Notifications
You must be signed in to change notification settings - Fork 0
jocke/Find-Partials
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A very simple script that scans through one rails view file looking for 'render partials' and recursively prints out how they are related. Usage: ./find_partials.rb app/views/<controller>/<action>.rhtml Limitations - Only does extensions "rhtml" and "html.erb" - Is not clever enough to figure out partials with "/" in the file names (shared partials) - Probably won't work under Windows. Suggested improvements: - Make it work with "/" in the file names - More extensions - Better OO (PartialFile object?) - Better output, graphical output. - Smarter error handling. - Detection of recursive partials - Complete redesign; Scan all partials and map their relationships. Would be good for systems with a lot of shared partials. License: DWYWWIBDBM Do what you want with it but don't blame me. Author: Jocke Selin <jocke@selincite.com> Version: 0.1 Date: 2010-01-22
About
Simple Ruby script to show which partials are included in a Rails view file.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published