SunRav BookEditor :: Template language

Description

Each template is a string that contains zero or more text characters and zero or more control tags. Tag is a case-sensitive character sequence that is enclosed in the < and > characters. Each tag has a name - an alphanumeric sequence of characters.

Each tag can have one or more parameters represented as the name="value" pair. Each tag must either be closed or have a closing pair.


Example:

<macro name="MacroName"/>


<if name="condition"></if name="condition">


Unlike XML and HTML languages, each control tag including closing tags must have a non-empty "name" parameter as shown in the above example for the if tag.

When a prefix is defined, for example, to #, the tag will look like

<#if name="condition"><#/if name="condition">


The following tags are defined:

  1. Loops
  2. Conditions
  3. Macros
  4. Comments