post rendering templates

14 views
Skip to first unread message

Joe Le Brech

unread,
Aug 23, 2013, 2:37:46 PM8/23/13
to rubyonra...@googlegroups.com
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.

Joe Le Brech

unread,
Aug 29, 2013, 9:06:54 AM8/29/13
to rubyonra...@googlegroups.com
I've found what i'm looking for:

Reply all
Reply to author
Forward
0 new messages