Index: openacs-4/packages/acs-core-docs/www/tcl-doc.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tcl-doc.html,v diff -u -r1.32.2.4 -r1.32.2.5 --- openacs-4/packages/acs-core-docs/www/tcl-doc.html 22 Oct 2004 02:38:15 -0000 1.32.2.4 +++ openacs-4/packages/acs-core-docs/www/tcl-doc.html 1 Nov 2004 23:40:14 -0000 1.32.2.5 @@ -1,7 +1,7 @@ -Documenting Tcl Files: Page Contracts and Libraries

Documenting Tcl Files: Page Contracts and Libraries

By Jon Salz on 3 July 2000

+Documenting Tcl Files: Page Contracts and Libraries

Documenting Tcl Files: Page Contracts and Libraries

By Jon Salz on 3 July 2000

OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -
  • Tcl procedures: /packages/acs-kernel/tcl-documentation-procs.tcl

The Big Picture

In versions of the OpenACS prior to 3.4, the standard +

The Big Picture

In versions of the OpenACS prior to 3.4, the standard place to document Tcl files (both Tcl pages and Tcl library files) was in a comment at the top of the file:

 #
@@ -36,7 +36,7 @@
 its contract which type of abstract document it
 returns, and the request processor can transform it automatically into
 something useful to a particular user agent. (Don't worry about this for
-now - it's not complete for ACS 3.4.)

ad_page_contract

+now - it's not complete for ACS 3.4.)

ad_page_contract

Currently ad_page_contract serves mostly as a replacement for ad_page_variables. Eventually, it will be integrated closely with the documents API so that each script's contract will document @@ -145,7 +145,7 @@ identification string. Just use $Id: tcl-documentation.html,v 1.2 2000/09/19 07:22:35 ron Exp $ when creating the file, and CVS will substitute an appropriate string when you check the file in.

- These @ tags are optional, but highly recommended!

ad_library

+ These @ tags are optional, but highly recommended!

ad_library

ad_library provides a replacement for the informal documentation (described above) found at the beginning of every Tcl page. Instead of: