From: Stefan Rusterholz Date: 2007-08-14T09:47:15+09:00 Subject: Re: Can .rhtml files include text from .txt or .html file? Sfdesigner Sfdesigner wrote: >> Then http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/245920 >> may >> hopefully be helpful. >> >> Felix > > Thanks! I got this to work > > <% print IO.read("header.html") %> > > DAN That print is most likely introducing buggy behaviour into your thingy. a) print prints to $stdout, whatever renders your template doesn't necessarily print to $stdout, so header.html might be printed somewhere else than the rest of the template b) even if that's not the case, it will screw up timing, the print happens immediatly when the template is rendered, which is *before* it is printed, try to do that with a "footer.html" on the very end of your template and you'll see what I mean - your footer.html will be printed on top Use what the others more than once suggested you: <%= File.read(path) %> Regards Stefan -- Posted via http://www.ruby-forum.com/.