Script declaration

Description :

Every script within a template starts with a Script declaration. it defines the meta-model element attached to the script and its name.

Syntax :

Attributes Summary
Name Description Status
type Meta model object type Mandatory
name Script name Mandatory
file name and path of the file that will be generated Optional
description commentary Optional
 
A script statement starts with <% (or [%) and end with %> (or %]).
The content of the script is made of everything after the script statement, until another script statement is found.

Example :