I'm looking to add text before the output of each template and partial to
show the following:

<div style="display:none">/path/to/erb/file</div>

or

document.write ... if it's a javascript file.

If I'm using tilt I also use templates for those notices (for coffeescript
etc..)

i've found a gem for rails 2 that did that, but it doesn't work anymore.

Is there a after_render hook in tilt that I could use.

This is just for development mode.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7ef905ac-bbc3-4a2e-8361-6104f6526edb%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedAug 23, '13 at 6:37p
activeAug 29, '13 at 1:07p
posts2
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Joe Le Brech: 2 posts

People

Translate

site design / logo © 2021 Grokbase