xotcl.wu-wien.ac.at
Begin main content
Search · Index
No registered users in community s5-xowiki-tutorial
in last 10 minutes

Example for ::xowiki::Object

# -*- tcl-*-
# Small example for demonstrating an ::xowiki::Object
# When the prototype page is loaded, the object named
# CGI will be added to the XoWiki package

::xowiki::Object new -title "CGI" -text {
  proc content {} {
    return "Hello \[\[Wiki\]\]-World. It is now [clock format [clock seconds]]."
  }
}

Rendered Content looks like:

Hello [[Wiki]]-World. It is now Tue Dec 01 04:11:21 +0100 2020.