velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Short <...@benshort.co.uk>
Subject Possible with Velocity
Date Fri, 12 Mar 2010 11:06:05 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message