on ‎2018 Aug 03 10:57 AM
There is a common header.vm and footer.vm file that have the header and footer details which i have to use in more than 15 email vm body files.
Please suggest me the relevant steps to do so.
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
As per the Apache velocity template documentation , it will support include functionality.
refer the below code sample
and refer the documentation link
Thanks,
Venki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply Venki,
But i did try the #include and #parse commands but i get the following error as resource not found.
Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'emails/email-header.vm'
BTW the header and footer files are velocity files by themselves . So i want to add the common velocity header files to my EmailBody vm file
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.