Customising a template

Templates can be customised to extend or modify the behaviour of your generated application. It is recommended that you use your favourite text editor/IDE to edit templates, but RapidJ does provide a basic template editor.

The following steps describe how to customise a template using the template editor:

  1. Go to the Generate Code tab in the main application window.
  2. In the Templates tree, double click on the template that you want to customise.
  3. Customise the template by modifying it in the Template Editor.
  4. Press the Save and Close button to save the changes.
  5. After making changes to a template you may need to generate the application again.

The following steps describe how to customise a template using your favourite text editor/IDE:

  1. Open the template file in your favourite text editor/IDE.
  2. Customise the template by modifying it and then save it.
  3. Switch back to RapidJ and it automatically detects any changes that have been made.
  4. After making changes to a template you may need to generate the application again.

FreeMarker plugins

There are are a number of FreeMarker plugins available for the different text editors and IDE's. The list of plugins can be found on the FreeMarker website at http://freemarker.org/editors.html

Related tasks

Generating an application

Related reference

Template Editor
Generate Code tab