From: Jano Svitok Date: 2007-08-13T04:59:45+09:00 Subject: Re: Can .rhtml files include text from .txt or .html file? On 8/12/07, Sfdesigner Sfdesigner wrote: > Hi, > > I have a header.html file that contains

client name

. > > Is there some way to get the header.html file content into a index.rhtml > that looks something like this? > > > > <% include 'header.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