Using freemarker layout vs tiles.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Using freemarker layout vs tiles.

Praveen Kumar
Hi All.

Freemarker layout example.

Example from (

<#macro myLayout title="FreeMarker example">
  <html> <head>
            <title> ${title} </title>
            <#include "header.ftl"/>
          <div class="menus">
            <#include "menu.ftl"/>
          <div class="body">
          <div class="footer">
            <#include "footer.ftl"/>

<#import "layout/defaultLayout.ftl" as layout>
<@layout.myLayout "Home page">
  <div><h1>Hello Freemarker</h1></div>

Is the above approach and using  Apache tiles with freemarker have same behavior in page rendering process.

If there are any differences in page rendering logic . Please help me to understand the differences and which one is better approach.

Thanks a lot.

October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
FreeMarker-user mailing list
[hidden email]