1TEMPLATESPP1(1)          Templates Parser User's Guide         TEMPLATESPP1(1)
2
3
4

NAME

6       templatespp - preprocessor based on templates parser
7

SYNOPSIS

9       templatespp [-o file] file
10

DESCRIPTION

12       templatespp is a pre-processor based on the template parser. It is gen‐
13       erally used from scripts to process files  and  generate  other  files.
14       One  of  the  possible  uses, for instance, is to write the CSS (style-
15       sheet) of a web site as a template file  (for  instance  `mycss.tcss'),
16       and  use  template  parser  structures  in there. This is a good way to
17       share colors for instance, or to name constants, as is  often  done  in
18       Ada code.
19
20       Here is a small example of such a CSS:
21
22            @@SET@@ COLOR1=blue
23            @@SET@@ COLOR2=red
24            @@SET@@ LENGTH1=10
25
26            body {background:@_COLOR1_@}
27            div  {background:@_COLOR2_@}
28            ul.class {background:@_COLOR1_@}  /* same color as body */
29
30            ul   {width:@_ADD(3):LENGTH1_@px} /* ul 3 pixels wider than li */
31            li   {width:@_LENGTH1_@px}
32
33       Such a file would be processed with the following command line:
34
35            templatespp -o mycss.css mycss.tcss
36
37

OPTIONS

39       -h     Display a summary of options.
40
41
42       -o file
43              Write the output to file.
44

SEE ALSO

46       templates2ada(1)
47
48       The Template Parsers User's Guide in package libtemplates-parser-dev.
49
50

AUTHOR

52       templatespp  was  written by Pascal Obry <p.obry@wanadoo.fr> as part of
53       the Ada Web Server.
54
55       This manual page was written by Ludovic Brenta <lbrenta@debian.org> for
56       Debian GNU/Linux.
57
58
59
60GNU Ada Tools                     2008-05-04                   TEMPLATESPP1(1)
Impressum