# Rhtml & rails

**URL:** <https://www.ruby-forum.com/t/rhtml-rails/184337>\
**Category:** Rails\
**Created:** [March 1, 2010, 5:26am UTC](https://www.ruby-forum.com/t/rhtml-rails/184337 "2010-03-01T05:26:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a87d85/32.png) [@david2](https://www.ruby-forum.com/u/david2)\
**Post date:** [March 1, 2010, 5:26am UTC](https://www.ruby-forum.com/t/rhtml-rails/184337/1 "2010-03-01T05:26:33Z")

</div>

Very nubee  
If you have a rails app as part of a website that has a good bit of  
static or close to static HTML. Where is it suggested that the static  
HTML reside?

Should the HTML reside within the public directory of the application  
or reside outside the app? It would be nice if it were together  
because the Rails app and the static html need to have same look and  
feel and share common elements.

It would be nice if this static HTML could use a template language  
(PHP or Ruby) to handle simple things like includes of HTML fragments  
etc. Can rhtml be used and processed like ‘erb’? If so, where should  
it reside and how is it setup?

Thanks

---

<div class="post-metadata">

**Author:** ![david2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a87d85/32.png) [@david2](https://www.ruby-forum.com/u/david2)\
**Post date:** [March 1, 2010, 10:27am UTC](https://www.ruby-forum.com/t/rhtml-rails/184337/2 "2010-03-01T10:27:22Z")

</div>

On 1 March 2010 04:25, david2 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> It would be nice if this static HTML could use a template language  
> (PHP or Ruby) to handle simple things like includes of HTML fragments  
> etc. Can rhtml be used and processed like ‘erb’? If so, where should  
> it reside and how is it setup?

If it is entirely static then put it in public. If not quite static  
then have a pages\_controller (or whatever you want to call it) and use  
rails to do the dynamic stuff. A controller does not need an  
underlying model.

Colin
