TEMPLATESPP1(1)
πΈ NAME πΈ
okay so bestie, this is the TEMPLATESPP1(1) page from the Templates Parser User's Guide, and the star is templatespp β a preprocessor based on the templates parser. π
β¨
π SYNOPSIS π
templatespp [-o file] file
π DESCRIPTION π
So like, templatespp is a pre-processor based on the template parser. Itβs 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βs a small example of such a CSS β no cap, itβs kinda iconic:
@@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. π«Ά-ofile β 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. π
okay bye bestie, this pageβs footer vibe is GNU Ada Tools, dated 2008-05-04. mwah ππβ¨
π¦ where this page comes from
- debian bookworm: libtemplates-parser16-dev 23.0.0-3 Β· GPL-3.0-or-later WITH GCC-runtime-library exception
- debian trixie: libtemplates-parser-dev 25.0.0-2 Β· GPL-3.0-or-later WITH GCC-runtime-library exception
- ubuntu jammy: libtemplates-parser14-dev 21.0.0-2 Β· GPL-3.0-or-later WITH GCC-runtime-library exception
- ubuntu noble: libtemplates-parser-dev 24.0.0-2build1 Β· GPL-3.0-or-later WITH GCC-runtime-library exception
- ubuntu noble: libtemplates-parser-dev 24.0.0-2build1.1 Β· GPL-3.0-or-later WITH GCC-runtime-library exception
- ubuntu questing: libtemplates-parser-dev 25.0.0-2build1
- ubuntu resolute: libtemplates-parser-dev 25.0.0-2build2 Β· GPL-3.0-or-later WITH GCC-runtime-library exception
- ubuntu stonking: libtemplates-parser-dev 25.0.0-2build3 Β· GPL-3.0-or-later WITH GCC-runtime-library exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms