Templates


A template is a file with fixed text, headers and footers to mark repeatable sections and substitution variables.

A simple example of an ASCII template might be:

Model,Color ;Item Header $CarModel$,$CarColor$ ;Item Footer Generated on $CurrentDate$ by $UserName$

This might generate the following (depending on the data):

Model,Color Pacer,Green Pinto,Yellow Plymouth,Red Generated on January 1, 2001 by Joe

Additonal levels may be nested

Current Offerings ;Year Header Cars from $CarYear$ ;Item Header $CarModel$, $CarColor$ ;Item Footer ;Year Footer Generated on $CurrentDate$ by $UserName$

This might generate the following (depending on the data):

Current Offerings Cars from 1972 Pacer, Green Pinto, Yellow Plymouth, Red Cars from 1973 Caprice, Blue Chevelle, Beige Generated on January 1, 2001 by Joe