I'm looking for an extension (gem, plugin, whatever) that inserts
comments like
<!-- begin partial app/views/things/_thing.html.erb --%>
...
<!-- end partial app/views/things/_thing.html.erb --%>
around rendered templates (except in production env). A cursory search
didn't bring up anything, but I may have chosen the wrong terms. It
doesn't have to work for arbitrary template engines, ERB is enough.
I'm looking for an extension (gem, plugin, whatever) that inserts
comments like
<!-- begin partial app/views/things/_thing.html.erb --%>
...
<!-- end partial app/views/things/_thing.html.erb --%>
around rendered templates (except in production env). A cursory search
didn't bring up anything, but I may have chosen the wrong terms. It
doesn't have to work for arbitrary template engines, ERB is enough.
You want Frederick Cheung's Tattler: GitHub - fcheung/tattler .
I think it will work with any template engine; certainly I'm using it
with Haml. I don't know if it works with Rails 3 yet.