Templates

MetaCroc logo

Templates #

Together with metadata, templates are the heart of MetaCroc. They ensure a metadata transformation to scripts, documentation and other kind of output.

Templating in MetaCroc is based on Apache Freemarker(TM) and the templates based on this engine are stored here.

Template identification #

When MetaCroc selects a proper template to transform metadata to the output, it uses these four attributes:

  • System technology
  • Element type
  • Element stereotype
  • Object type assigned to the element

Template

This information is a part of a template definition. On top of that, there are some more attributes:

Attribute Description
File extension An extension of the generated file
Output format This information serves for a proper preview of the output
Description A free text explaining template purpose
Comment A free text commenting the template

Template language #

The detailed description and manual of the template language is on Apache Freeamarker(TM) page.