Skip to content

duncanbeevers/rails_view_annotator

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 

Rails View Annotator

Purpose

The Rails View Annotator wraps the rendering of Rails partials with html comments indicating the disk location of the rendered partial.

Usage

Simply add the gem to your Gemfile's development block.

group :development do
  gem 'rails_view_annotator'
end

Now rendered content will have instructive comments.

<!-- begin: app/views/user/_bio.html.haml (from app/views/user/show.html.haml:4) -->
<div class='bio'>Ed's Bio</div>
<!-- end: app/views/user/_bio.html.haml (from app/views/user/show.html.haml:4) -->

License

WTFPL

About

Wraps the rendering of Rails partials with html comments indicating the disk location of the rendered partial

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages