# Filtering a templating component

**URL:** <https://www.ruby-forum.com/t/filtering-a-templating-component/137039>\
**Category:** Rails\
**Created:** [May 8, 2008, 2:27pm UTC](https://www.ruby-forum.com/t/filtering-a-templating-component/137039 "2008-05-08T14:27:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Burger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/96bed5/32.png) [@Burger](https://www.ruby-forum.com/u/Burger)\
**Post date:** [May 8, 2008, 2:27pm UTC](https://www.ruby-forum.com/t/filtering-a-templating-component/137039/1 "2008-05-08T14:27:37Z")

</div>

Hi All!

My sample app uses a ‘main’ layout (specified in application  
controller),  
so my controllers’ views .rhtml template snippets are included in the  
template structure (in the rendered page).  
I would like to filter _only_ this rhtml response part (without  
workarounds) using Rails natural filtering mechanism and filter  
inheritance; not the whole response.body.  
(like at the perl based HTML::Mason framework)  
Any ideas?

Rails v1.2.6

thanks
