TEMPLATESPP1(1)

πŸ“¦
version 25.0.0 Β· 2 versions
  • 25.0.0 Β· debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 26.0.0 Β· fedora 43, fedora 44
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 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. 🫢
  • -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. 🌈


okay bye bestie, this page’s footer vibe is GNU Ada Tools, dated 2008-05-04. mwah πŸ’‹πŸŽ€βœ¨

πŸ“¦ where this page comes from