The Word templates contain Velocity scripts and CSS code which can be customized for your needs. This makes the deployment of custom Word templates easy because one Word file contain everything.
But it makes the development of such Word templates difficult, because every time you make some changes you will have to upload the modified Word file again and again...
To make this easier do this:
- Create a "$CB_HOME/tomcat/webapps/cb/config/templates/MyTemplate.vm" file on your server, and put the Velocity scripts you are working on there
- Modify your Word template include the content of this template file using this line:
#parse(“MyTemplate.vm”)
Why this is better? Because:
- You can edit the "MyTemplate.vm" using your faviourite text editor/IDE (Eclipse for example) with syntax highlighting etc...
- Every time the "MyTemplate.vm" is changed it will automatically loaded when the Word template runs, so you don't need to upload the Word template just once...
Similar to this you can include CSS files too.
And after the development is complete just copy-paste the content of the "MyTemplate.vm" into the final Word template and ship/deploy that.