In Apache Click we use a similar pattern using Velocity.

http://click.apache.org/docs/user-guide/htmlsingle/click-book.html#page-templating

regards Malcolm Edgar

On Fri, Mar 12, 2010 at 10:06 PM, Ben Short <[email protected]> wrote:
> Hi,
>
> With free marker I can do the following:
>
> layout.ftl
>
> <#macro layout>
> <html>
> <head>
>    <title>Freemarker Test</title>
> </head>
> <body>
>    <h1></h1>
>    <#nested/>
> </body>
> </html>
> </#macro>
>
> page.ftl
>
> <#import "layout.ftl" as layout>
> <@layout.layout>
>  <div>
>      <h1>Standard Page</h1>
>  </div>
> </@layout.layout>
>
> Is it possible todo the same with velocity?
>
> Regards
>
> Ben
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to