View · Index

Unit 3 / Package manager (1)

www/index.tcl: Using your package manager as context resolver
  • Call  to  a  creator method:  ::xo::PackageMgr->initialize()
  • Providing a documentation string
  • Specify expected  parameter set

# file xotcl-demo-note/www/index.tcl

::demo::Package initialize -ad_doc {
  
  This is the main page for the package.  
  It displays all of the Demo Notes and
  provides links to create, edit and delete Notes.
  
  @author Gustaf Neumann
  @cvs-id $Id$
} -parameter {
  {-orderby:optional "last_modified,desc"}
}
...