The documentation for template commands (messages) is extracted from the header comment of each template procedure.
In addition procedures starting with »get-« or »set-q« are assumed properties and thus skipped.
First »describe« formats the command signature, in particular the parameters.
»isDefaultParameter« is being deployed to test for predefined parameter values.
Some DocBook tags are allowed inside the commentary. The tags must be non ambiguous in every part, most important: their end! »allowTags« is being used for parsing DocBook tags. These tags are carried over into the documentation. The implementation of »allowTags« is being given in Example 10.10, “allowTags”.
»describe« preserves common entities . Hence, be careful when using & inside the commentary!
In the Example 10.11, “Referenced Examples”, the
foo/command1.tcl
is being
used for »tcl«-projects. The same example inside
inside the DocBook directory is recessive to the
more specific version inside the sub-directory
foo.
The foo/command1.rb
will
be used for .rb (Ruby) projects.
The command1.py
will be
used for .py (Python) projects.
And final command1.lisp
will
be used for .lisp (Lisp)
projects.