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

Reply via email to