For several times I've run into the Tiles or VelocityLayoutView references and I thought to myself - that's cool, I want to try it out.
The only stopper for me is that I don't know how to elegantly specify the header title in the page.
Now I don't see how I can specify $title variable, so that it would be rendered properly in layout.vm.
<!-- Layout in layout.vm -->
<!-- Page Content Template in index.vm -->
I'd like to specify it right in index.vm, not in the Controller/Model, not in the Spring's -servlet.xml too
If I just do this in index.vm:
It still won't work right, because layout has been rendered before the #set directive executed.
#set($title = "Title1")
Any advice/hints would be greatly appreciated.