Dashboard > Documentation [en_US] > Home > Template
Log In View a printable version of the current page. Portuguese English
Added by Bruno Braga , last edited by Bruno Braga on May 03, 2008  (view change)
Labels: 
(None)


Code generation is interesting only if we can configure some details of the generated code our own way. This is possible through SPIDER code templates.
As a standard, the project will have only one template named 'default', with support to several frameworks. But what really matters is that developers will be able to create their own templates.
The templates are simple and objective because they use Velocity technology. Even the ones who have never worked with Velocity can see the template structure and create a new one or make changes.

Basically, two steps should be followed in order to create a template:

  • creating template files using Velocity;
  • mapping which files will be generated in which step and for which technology by using XML files.

Topics:

  1. Velocity
  2. XML Files
    2.1  File list.xml
    2.2  File databaseTypeConfig.xml
    2.3  File template.xml
    2.4  File templateFiles.xml
    2.5  File templateFiles-jar.xml
    2.6  Variables of templateFiles.xml file
Powered by a free Atlassian Confluence Open Source Project License granted to J2EE Spider. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators