Next: Pre Process example   Previous: ttree standard process   Contents: Index

Pre and Post Process

The 'pre_process' option allows you to specify a template file which should be processed before each file. There's also a 'post_process' option to add a template after each file. In the fragment above, we've specified that the 'config' template should be used as a prefix template. We can create this file in the 'lib' directory and use it to define some common variables, including those web page links we defined earlier and might want to re-use in other templates. We could also include an HTML header, title, or menu bar in this file which would then be prepended to each and every template file, but for now we'll keep all that in a separate 'header' file.