Creating a template

New templates can be created to extend or modify the behaviour of your generated application.

The following steps describe one way of creating a new template:

  1. Locate the templates directory for the current project in a file browser:
  2. Locate or create the template directory where the new template will be located.
  3. Create a new file in that directory named after the template, and ending in .ftl. For example, newFeature.java.ftl
  4. Go to the Generate Code tab in the main application window.
  5. Press the Refresh toolbar button in the template toolbar.
  6. The new template should appear in the Template tree:
  7. Double click the template in the tree to edit it.
  8. Edit the template according to the correct template format.

Related concepts

Template
Template format

Related reference

Generate Code tab