Project

General

Profile

TEMPLATE specification » History » Version 1

Redmine Admin, 01/05/2010 09:28 AM

1 1 Redmine Admin
h1. TEMPLATE specification
2 1 Redmine Admin
3 1 Redmine Admin
This is a new specification for a simple template format: raw HTML containing placeholders.
4 1 Redmine Admin
5 1 Redmine Admin
This template specification provides no looping capability. However, using the *part template*, it is possible to repeat 
6 1 Redmine Admin
7 1 Redmine Admin
h2. Full versus part template
8 1 Redmine Admin
9 1 Redmine Admin
h3. Full template
10 1 Redmine Admin
11 1 Redmine Admin
In case of a full template, the template file is a valid HTML file, including HTML, HEAD and BODY directives.
12 1 Redmine Admin
13 1 Redmine Admin
h3. Partial template
14 1 Redmine Admin
15 1 Redmine Admin
Partial template is made of HTML code, excluding any of the HTML, HEAD, BODY directives.
16 1 Redmine Admin
17 1 Redmine Admin
h2. Place holders and reserved keywords
18 1 Redmine Admin
19 1 Redmine Admin
h3. syntax
20 1 Redmine Admin
21 1 Redmine Admin
Placeholders and reserved keywords are delimited within template by '%' (percent) sign surrounding keyword:<pre>Here will the %placeholder% be replaced.</pre>
22 1 Redmine Admin
+(to be discussed)+
23 1 Redmine Admin
24 1 Redmine Admin
h3. Rules
25 1 Redmine Admin
26 1 Redmine Admin
Placeholders and reserved keywords are made of any character from within [a-zA-Z0-9], and are case intolerant: _ABC_ and _abc_ designate the same placeholder, but _%ABC%_ may not be replaced properly if match is against _%abc%_.
27 1 Redmine Admin
28 1 Redmine Admin
h3. Reserved keywords
29 1 Redmine Admin
30 1 Redmine Admin
Some Placeholders are reserved for futur usage.
31 1 Redmine Admin
32 1 Redmine Admin
* include
33 1 Redmine Admin
* do
34 1 Redmine Admin
* loop
35 1 Redmine Admin
* while
36 1 Redmine Admin
* repeat
37 1 Redmine Admin
* break
38 1 Redmine Admin
* exit