# Flexible engines with stub partials

**URL:** <https://www.ruby-forum.com/t/flexible-engines-with-stub-partials/97123>\
**Category:** Engines Development\
**Created:** [July 5, 2006, 3:14am UTC](https://www.ruby-forum.com/t/flexible-engines-with-stub-partials/97123 "2006-07-05T03:14:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [July 5, 2006, 3:14am UTC](https://www.ruby-forum.com/t/flexible-engines-with-stub-partials/97123/1 "2006-07-05T03:14:49Z")

</div>

Hi,

I am designing a e-commerce engine which must be very flexible. I am  
keeping each template and partial small for easy overriding but in  
some cases I’d like to do less work to extend the engine. I’m thinking  
about using some stub partials. This would be a blank .rhtml file in  
the engine and rendered in one of the templates. This would be a nice  
hook for the engine user. One useful example I can imagine is having  
a hook in the layout head so extra js and css files can be used  
without rewriting the layout.

Has anyone done this before? Any other approches or advice?

Thanks,  
Peter
