Skip to content
Dominique Lasserre edited this page Sep 2, 2013 · 1 revision

Templates are located in data/templates.

A template's internal name (in the following referred to as [name]) must consist of a-z and underscore.

Each template consists of

  • the XML file data/templates/[name].info, which contains details about the template. This includes the author and the template's name as it is shown to the user. Both name and description can be given in different languages.
  • a folder data/templates/[name], which contains the actual source code. The valama project file must be called data/templates/[name]/template.vlp. The name inside the .vlp file will be overwritten with the name the user chooses when using the template.
  • Optionally: A PNG, JPG/JPEG or SVG image data/templates/[name].{png,jpg,jpeg,svg}, which will be shown in the template selection dialog.

Creating a new template

The easiest way is to copy the plain_vala template.

Then adjust data/templates/[name].info to describe your template (at least in English) and put the template's source in data/templates/[name]/src.

Add all vala packages required to build and run the template in the template's .vlp file.

Once your template is ready, reinstall Valama (or use --templates switch). Your template should then be available in Valama.

Clone this wiki locally