I've found what i'm looking for: https://gist.github.com/excid3/6372212
On Friday, August 23, 2013 7:37:46 PM UTC+1, Joe Le Brech wrote: > > 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+unsubscr...@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/5aaa28d4-e903-439e-893c-9d4fb7461b74%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.