Next: , Previous: template link, Up: template


Define template options
— TCL Backend: template options { pattern body ... }

Define the list of supported options for the template. Argument is a Tcl switch-like script that must define all supported options. It consists of pairs of pattern body. If an option matching the pattern is passed to the template, the body script is evaluated. A special body specified as "-" means that the body for the next pattern will be used for this pattern.

Examples:

          template options {
          -h - --help	{ puts "help option" }
          }

This will make the template print the text "help option" whenever -h or –help option is passed to the template.