Jano Svitok
8/12/2007 8:00:00 PM
On 8/12/07, Sfdesigner Sfdesigner <daniel@seniorartdirector.com> wrote:
> Hi,
>
> I have a header.html file that contains <h1>client name</h1>.
>
> Is there some way to get the header.html file content into a index.rhtml
> that looks something like this?
>
> <html>
> <body>
> <% include 'header.html' %>
> </body>
> </html>
I'm not too much at home with rails, but try
<%= File.read 'header.html' %>
There might be a more clever way to do this, especially regarding to paths...
Then there is a command to include a sub-template, and I guess you can
use that too.
Jano