Skip to content

Template Hierarchy

Pre-release
Pre-release
Compare
Choose a tag to compare
@chovyy chovyy released this 06 Jul 22:12
· 10 commits to beta since this release

This beta release brings major changes to the template system

Old templates will not work any longer!

You have to change your configuration!

  1. The template API has changed and is not compatible to the old API.

  2. The configuration variable TEMPLATE_DIR is replaced by TEMPLATE. Instead of a directory it has to set a concrete template file. This template file has to extend FTGTemplate.tmpl by defining all needed parts, see for example templates/Standalone/Standalone.tmpl. The individual parts still can be contained in separate files, but those have to be included by the main file.

    Mandatory parts:

captureBeforeContains
captureAfterLastSpecification
captureBeforeEnd
captureAfterSubroutine
export
replay
  1. Templates can inherit from other templates and redefine only some parts.

    Current template hierarchy:

FTGTemplate.tmpl
│
└─ templates/Standalone/Standalone.tmpl
   │  
   ├─ templates/StandaloneNoMPI/StandaloneNoMPI.tmpl
   │
   └─ templates/IconStandalone/IconStandalone.tmpl
      │
      └─ templates/IconTestbed/IconTestbed.tmpl
  1. There is still no documentation available. SORRY!
    Just copy one template and try out yourself.