Per request initialization
namepsace eval ::myapp {
...
::myapp::Package instproc initialize {} {
# Per application type initialization.
#
# One can register here e.g. mixins extending/replacing
# xowiki behavior. For example
# ::xowiki::Page instmixin add ::myapp::Page
#
next
}
::myapp::Package instproc destroy {} {
# remove the behavior added by initialize
# ::xowiki::Page instmixin delete ::myapp::Page
next
}
...
}