From: Jano Svitok
Date: 2007-03-24T01:28:02+09:00
Subject: Re: Newbie templating question: how to combine multiple file
On 3/23/07, Frank Reiff wrote:
> Jano Svitok wrote:
> > On 3/23/07, Frank Reiff wrote:
> >>
> >> HTML editor, something along these lines:
> >>
> <%=render("header.html"%>
> Hello World
>
>
>
> becomes
>
>
>
> My Header
> Hello World
>
>
File.join is used for joining pathnames. See the docs.
The output depends on the content of the included template. If there's
then it'll be in the output and vice versa.
so if header.html contains:
My Header
then you'll have the output you wrote, but if there's only:
My Header
then you'll probably get what you want.
Jano