# post rendering templates

**URL:** <https://discuss.rubyonrails.org/t/post-rendering-templates/67672>\
**Category:** rubyonrails-talk\
**Created:** [August 23, 2013, 6:37pm UTC](https://discuss.rubyonrails.org/t/post-rendering-templates/67672 "2013-08-23T18:37:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Le\_Brech](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Joe\_Le\_Brech](https://discuss.rubyonrails.org/u/Joe_Le_Brech)\
**Post date:** [August 23, 2013, 6:37pm UTC](https://discuss.rubyonrails.org/t/post-rendering-templates/67672/1 "2013-08-23T18:37:46Z")

</div>

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

/path/to/erb/file

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.

---

<div class="post-metadata">

**Author:** ![Joe\_Le\_Brech](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Joe\_Le\_Brech](https://discuss.rubyonrails.org/u/Joe_Le_Brech)\
**Post date:** [August 29, 2013, 1:06pm UTC](https://discuss.rubyonrails.org/t/post-rendering-templates/67672/2 "2013-08-29T13:06:54Z")

</div>

I’ve found what i’m looking for:

[https://gist.github.com/excid3/6372212](https://gist.github.com/excid3/6372212)
