Hi,


Is there a way in Velocity Templates to imbed other velocity templates?



I have the following velocity template "mypage_html.vm",
"
<html>
    <body>
         text to be displayed

    </body>

</html>

"



For reusability purposes I want to have 2 base velocity templates:

"mypage_html_header.vm":
"
<html>

    <body>
"

"mypage_html_footer.vm":

"
    </body>


</html>
"



Then to refactor "mypage_html.vm" to:
"
#include mypage_html_header.vm
         text to be displayed


#include mypage_html_footer.vm

"



Is this possible in Velocity Templates?



Thanks in Advance,

Niall

Reply via email to