TEMPLATESPP1(1) Templates Parser User's Guide TEMPLATESPP1(1)NAME
templatespp - preprocessor based on templates parser
SYNOPSIS
templatespp [-o file] file
DESCRIPTION
templatespp is a pre-processor based on the template parser. It is generally used from scripts to process files and generate other files.
One of the possible uses, for instance, is to write the CSS (style-sheet) of a web site as a template file (for instance `mycss.tcss'), and
use template parser structures in there. This is a good way to share colors for instance, or to name constants, as is often done in Ada
code.
Here is a small example of such a CSS:
@@SET@@ COLOR1=blue
@@SET@@ COLOR2=red
@@SET@@ LENGTH1=10
body {background:@_COLOR1_@}
div {background:@_COLOR2_@}
ul.class {background:@_COLOR1_@} /* same color as body */
ul {width:@_ADD(3):LENGTH1_@px} /* ul 3 pixels wider than li */
li {width:@_LENGTH1_@px}
Such a file would be processed with the following command line:
templatespp -o mycss.css mycss.tcss
OPTIONS -h Display a summary of options.
-o file
Write the output to file.
SEE ALSO templates2ada(1)
The Template Parsers User's Guide in package libtemplates-parser-dev.
AUTHOR
templatespp was written by Pascal Obry <p.obry@wanadoo.fr> as part of the Ada Web Server.
This manual page was written by Ludovic Brenta <lbrenta@debian.org> for Debian GNU/Linux.
GNU Ada Tools 2008-05-04 TEMPLATESPP1(1)
Check Out this Related Man Page
AWSRES(1) AWS User's Guide AWSRES(1)NAME
awsres - build resource files for Ada Web Server applications
SYNOPSIS
awsres [-h] [-r unit] [-q] file...
DESCRIPTION
The Ada Web Server is a library that allows you to embed a web server into your Ada application. It provides not only HTTP but also SOAP,
WSDL and several other facilities. Thus you can write full-fledged web applications. awsres allows you to embed resources, such as pic-
tures, into your final executable, so that your executable is completely self-contained and does not need to read other files at run time.
awsres works by creating Ada source files that contain the data for your resources as arrays of bytes. You then compile these Ada source
files into your executable. At run time, the AWS library automatically loads the resources from the executable whenever available.
awsres creates one parent Ada package named, by default, `res', and one child package for each of the files given on the command line. The
package `res' registers each resource when your application starts. To link `res' into your executable you simply add a `with res;' state-
ment in one of your source files.
EXAMPLE
$ ls
image.png
$ awsres image.png
AWSRes - Resource Creator v1.0
creating image.png...
-> registered
$ ls
res.adb res.ads res-image_png.ads image.png
OPTIONS -h Display help message.
-r name
Set the root unit name. Default is `res'.
-q Quiet mode.
SEE ALSO wsdl2aws(1)
The Ada Web Server User's Guide in package libaws1-doc.
AUTHOR
awsres was written by Dmitriy Anisimkov <anisimkov@yahoo.com> and Pascal Obry <p.obry@wanadoo.fr> as part of the Ada Web Server.
This manual page was written by Ludovic Brenta <ludovic.brenta@insalien.org> for Debian GNU/Linux.
GNU Ada Tools 29 JAN 2004 AWSRES(1)
I've been able to generate output based on the code scarfake provided me (thanks again man).
A little background so everyone more or less knows whats going on:
I needed code that would propagate a database with 100,000 entries, for capacity testing purposes, something like a stress test.
... (5 Replies)
Hello.. every body... i hope you can helo me with this small code.
I need to substraction a one part of the string...i try to do with this code:
cat $TSMINCLUDE | while read c
do
l=${#c}
if ]; then
long=$((l-5))
else
long=$((l-6))
fi
fs=`echo $c | awk... (5 Replies)